[Openal] Buffer size problem

Chris Robinson chris.kcat at gmail.com
Sat Jul 4 03:27:06 PDT 2009


On Saturday 04 July 2009 3:05:57 am Jimmy Gervais wrote:
> By the way, I have the OpenAl Programmer's guide and Specification, but it
> seems to be limited to AL.h. I'd like to use ALC or ALEXT, especially
> because right now I'm limited to STEREO16 but I know Alext.h includes other
> formats with higher bitrates. What should I do? Study the headers?

There's four standard formats: AL_FORMAT_MONO8, AL_FORMAT_MONO16, 
AL_FORMAT_STEREO8, and AL_FORMAT_STEREO16. 8-bit formats use unsigned samples, 
and 16-bit formats use signed samples. Stereo formats are interleaved, so the 
first sample is for the left speaker, the second is for the right, etc. 
There's not much to ALC, except device initialization and queries, and audio 
capture (which is detailed in the spec).

The AL extensions aren't too well documented, aside partly from EFX and X-RAM 
which has documentation in the OpenAL SDK. For other extensions, there's some 
info here:
http://icculus.org/alextreg/
and here:
http://connect.creativelabs.com/openal/OpenAL%20Wiki/Extensions.aspx

If you have any specific questions, feel free to ask.


More information about the Openal mailing list