delthas/JavaMP3

Add support for MPEG 2/2.5

delthas opened this issue · 2 comments

The project currently supports MPEG 1 files only.

@delthas I have folowing file: error.zip, which doesn't play with JavaMP3, but plays with any other audio player. The error message is:

(SOUNDS) Failed to load MP3 file error.mp3 java.lang.NullPointerException
Caused by: Cause unknown null
(SOUNDS) fr.delthas.javamp3.Decoder.samples_III(Decoder.java:625)
(SOUNDS) fr.delthas.javamp3.Decoder.decodeFrame(Decoder.java:546)
(SOUNDS) fr.delthas.javamp3.Sound.decodeFullyInto(Sound.java:228)
(SOUNDS) mmb.DATA.contents.sound.Sounds.load(Sounds.java:50)
(SOUNDS) mmb.MODS.loader.AddonLoader.processFile(AddonLoader.java:204)
(SOUNDS) mmb.MODS.loader.AddonLoader.lambda$2(AddonLoader.java:166)
(SOUNDS) java.util.Hashtable.forEach(Unknown Source)
(SOUNDS) mmb.MODS.loader.AddonLoader.whenWorking(AddonLoader.java:165)
(SOUNDS) mmb.MODS.loader.AddonLoader.init(AddonLoader.java:115)
(SOUNDS) mmb.MODS.loader.AddonLoader.lambda$0(AddonLoader.java:75)
(SOUNDS) java.lang.Thread.run(Unknown Source)

Any plans on adding MPEG 2/2.5 support? If not do you know of any website that explain the difference in encoding as all I've found is information about the bitrate and that mpeg 2 was created primarily for TV/DVD/Video or something like that.