[Openal] Re: OpenAL Specification Documentation vagueness.
Raymond
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
> cleanup:
>
> 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
and AL_FORMAT_STEREO16.
Refer to alsa-lib/include/pcm.h
/** Signed 8 bit */
SND_PCM_FORMAT_S8 = 0,
/** Unsigned 8 bit */
SND_PCM_FORMAT_U8,
/** Signed 16 bit Little Endian */
SND_PCM_FORMAT_S16_LE,
/** Signed 16 bit Big Endian */
SND_PCM_FORMAT_S16_BE,
/** Unsigned 16 bit Little Endian */
SND_PCM_FORMAT_U16_LE,
/** Unsigned 16 bit Big Endian */
SND_PCM_FORMAT_U16_BE,
Is the audio data in alBufferData signed or unsigned ?
More information about the Openal
mailing list