forked from len0rd/rockbox
Removed floating point code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@612 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2611efd729
commit
72c8e71c21
1 changed files with 2 additions and 2 deletions
|
|
@ -446,7 +446,7 @@ getsonglength(int fd, mp3entry *entry)
|
|||
switch(layer) {
|
||||
case 1:
|
||||
bpf = bitrate_table[version - 1][layer - 1][bitindex];
|
||||
bpf *= 12000.0 * 4.0;
|
||||
bpf *= 48000;
|
||||
bpf /= freqtab[version-1][freqindex] << (version - 1);
|
||||
break;
|
||||
case 2:
|
||||
|
|
@ -456,7 +456,7 @@ getsonglength(int fd, mp3entry *entry)
|
|||
bpf /= freqtab[version-1][freqindex] << (version - 1);
|
||||
break;
|
||||
default:
|
||||
bpf = 1.0;
|
||||
bpf = 1;
|
||||
}
|
||||
|
||||
/* Calculate time per frame */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue