[Openal] Native support for ogg?

Garin Hiebert garinh at cheesetoast.net
Fri Jun 24 08:37:46 PDT 2005


> I'm new to OpenAL. I want to use ogg files as they have free licence.
> How can I get native support for ogg playback as the one which exists 
> for wav files? Does version 1.1 has made any improvements on this 
> subject.. As far as I can see on openal.org there was beta support for 
> ogg's in v1.0..
> I want to avoid streaming audio and buffer queuing. I would appreciate 
> any help..
> Thanx in advance..

Direct support is still very mixed, and not standard for OpenAL 1.1.  
What others have done is to use the vorbisfile library to implement 
decoding in their app, and pass the raw PCM data to OpenAL.  The 
vorbisfile interface is very easy to use -- it duplicates standard file 
read operations.

Vorbisfile documentation -- 
http://www.xiph.org/ogg/vorbis/doc/vorbisfile/

Garin




More information about the Openal mailing list