Page 1 of 1

Access to decoded audio data

Posted: 18 Oct 2008 20:32
by lamah
Hi!

I am trying to use JVLC to playback audio files. However, I need access to each decoded frame and this does not seem possible. Is this somehow possible? If it is possible with the VLC api I can use JNA directly to access that api instead of using JVLC.

Thanks

Mats

Re: Access to decoded audio data

Posted: 18 Oct 2008 20:45
by lamah
It seems this is possible if I write an audio filter for VLC.

This guy was/is looking for the same thing:
http://mailman.videolan.org/pipermail/v ... 34094.html

Someone who apparently tried to write an audio filter without success:
viewtopic.php?f=2&t=50412


The problem with an audio filter is that VLC still will do the actual playback. Ideally I would like to just call some function decode_frame(byte[] data) or have a callback that gave me the decoded frames as soon as they were available and not have VLC do the playback. I could then do the playback myself in JavaSound.