PDMP3 icon indicating copy to clipboard operation
PDMP3 copied to clipboard

Public domain mp3 decoder

Results 8 PDMP3 issues
Sort by recently updated
recently updated
newest added

I dumped the raw output to a file and now I want to convert this file to .wav with ffmpeg: ``` ffmpeg.exe -f s8 -ar 44000 -ac 2 -i result.txt...

I got the library to work, by reverting to the older commit before the streaming functions were added. i can decode an MP3 ok, unfortuantely there are noticable 'scratchy' type...

The given `sfb` can be 21 or 12, which exceeds as an index of `g_main_data.scalefac_l[gr][ch]` or `g_main_data.scalefac_s[gr][ch]`. I tested with an MP3 file at http://publicdomain4u.com/new-sound-for-an-old-baseball-classic

https://github.com/technosaurus/PDMP3/blob/master/pdmp3.c#L569 I guess `+2261` should be `+2773`.

https://github.com/technosaurus/PDMP3/blob/master/pdmp3.c#L1920 I'm not confident but the index for `count1` should be inverted? So the above line should be ``` max_pos = id->g_side_info.count1[gr][!(id->g_side_info.count1[gr][0] > id->g_side_info.count1[gr][1])]; ```

It looks like variables `is_ratio_l` and `is_ratio_r` are just assigned but not used anywhere.

Lots of room for improvement. 1. Floating point constants should be 0.0f (float) vs. 0.0 (double) for faster float ops 2. slow math ops like sin, cos & pow should...

enhancement