audiocogs / jsmad

Deprecated. Please use mp3.js.
https://github.com/audiocogs/mp3.js
124 stars 11 forks source link

mp2 support? #11

Closed kookster closed 10 years ago

kookster commented 10 years ago

the readme indicates that only MPEG-1 Layer III is supported, but when I tried an mp2 ( MPEG-1 Layer II - http://en.wikipedia.org/wiki/MPEG-1_Audio_Layer_II) in the demo, it worked just fine. Is this an accident, or did someone make a fix to enable Layer II?

devongovett commented 10 years ago

Layer II is not supported. Maybe your file is really layer 3, just with an mp2 extension for some reason? Check the file info in VLC or QuickTime player or somewhere else that shows the layer info. If you want Layer II support, you should use mp3.js which supports all three layers, and is generally improved from jsmad.

kookster commented 10 years ago

thanks @devongovett - it was an mp2, but I was using this demo page:

http://audiocogs.org/codecs/mp3/

...which mentions jsmad and implies that is what it is using, but is actually using mp3.js, so that makes sense!