Created attachment 457 [details]
decode.c ffmpeg/libav audio decode and openal playback native example.
Adding audio playback support to FFMPEGMediaPlayer will make it awesome.
The attached decode.c demonstrate audio decode using ffmpeg/libav and playback using openal.
We may choose to let the JOGL util FFMPEGMediaPlayer package depend on JOAL in order to facilitate easy playback of decoded audio frames.
I have started working on this bug, a in progress git branch is available:
I have now implemented a crude proof of concept FFMPEGMediaPlayer with plain Java Sound and a most simple a/v sync.
I only buffer audio frames for now. Video is played a bit ahead of time in order to generate enough audio frame buffer to prevent audio buffer under-runs during video "Thread.sleep" sync.
.. commits are to numerous to list here,
however, Xerxes's brought in audio frame decoding w/ JOAL output support!
Latest FFMPEG GLMediaPlayer / ALAudioSink refined such support ranging from: