[Openal] Re: OpenAL Specification Documentation vagueness.
rayau at netvigator.com
Fri Aug 26 03:22:12 PDT 2005
Stephen J Baker wrote:
> In the OpenAL specification document there is a need for some
> 1) In the section about alBufferData, there are no words explaining
> what the 'size' parameter means. It's genuinely ambiguous because
> (for an AL_FORMAT_STEREO16 for example), the size could be the number
> of samples *or* the number of pairs of samples *or* the number of bytes.
> This should be made explicit.
Valid Formats are AL_FORMAT_MONO8, AL_FORMAT_MONO16, AL_FORMAT_STEREO8
Refer to alsa-lib/include/pcm.h
/** Signed 8 bit */
SND_PCM_FORMAT_S8 = 0,
/** Unsigned 8 bit */
/** Signed 16 bit Little Endian */
/** Signed 16 bit Big Endian */
/** Unsigned 16 bit Little Endian */
/** Unsigned 16 bit Big Endian */
Is the audio data in alBufferData signed or unsigned ?
More information about the Openal