[Openal] OpenAl video audio ?

Jason Daly jdaly at ist.ucf.edu
Mon Apr 21 06:23:40 PDT 2008


Orlay Garcia Ducunge wrote:
> I need to play the sound of a video file .avi on Linux, using OpenAl, to read the file of video I use avifile-0.7.  
> This code extracts the video audio and save it in mp3 format, I don't need save it, I just need to store it in an OpenAl buffer to reproduce it. What I can do ?
>   

If it's in .mp3 format, you'll need to use an mp3 decoding library (lame 
or ffmpeg work well) to decode it to PCM format first, then you can 
stream it to OpenAL using regular buffer queuing.  I don't think any of 
the modern OpenAL implementations support streaming .mp3 data directly.

--"J"



More information about the Openal mailing list