technosaurus / pdmp3 Goto Github PK
View Code? Open in Web Editor NEWPublic domain mp3 decoder
Public domain mp3 decoder
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])];
https://github.com/technosaurus/PDMP3/blob/master/pdmp3.c#L569
I guess +2261
should be +2773
.
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 -ar 44100 -ac 1 out1.wav
The length (in seconds) of the output is valid but instead of sound I can only hear clicking.
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
Lots of room for improvement.
It looks like variables is_ratio_l
and is_ratio_r
are just assigned but not used anywhere.
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 sounds present in the output. this is in comparison to audacity where the quality is much better.
it would be great if this could be fixed. otherwise. the library is not usable in a professional application, and i would hope others looking for a non-LGPL decoder do not waste a day setting it up as i did.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.