Login  Register

Re: GLMediaPlayer not playing short MP3 files

Posted by asambol on Jan 22, 2015; 12:27pm
URL: https://forum.jogamp.org/GLMediaPlayer-not-playing-short-MP3-files-tp4033889p4033895.html

I finally got Paul Lamb Sound Library to work, thank you for your help.

For future reference, what I did wrong:
1. Not realizing there are methods which take URL instead of String paths.
2. Initializing SoundSystem in class constructor thread and then calling play() from EDT/rendering thread - froze my rendering, fixed by moving SoundSystem initialization to GLEventListener's init().
3. Using JOgg codec instead of JOrbis - only JOrbis worked for very short OGG files.

This still doesn't fix FFMPEGMediaPlayer issues, especially bug #3 which is not related to audio anyway (not reporting video EOS).