[Openal-devel] signed / unsigned pcm format

Chris Robinson chris.kcat at gmail.com
Thu Jan 29 21:09:26 PST 2009


On Thursday 29 January 2009 8:55:54 pm Daniel wrote:
> Please,
>
> OpenAL does use signed or unsigned pcm format ?
>
> It is OS dependent or it's always the same ?
>
> I need to know because I'm developing a cross-platform audio monitoring
> application that should plot the audio waveform when capturing...

OpenAL uses signed for 16-bit, and unsigned for 8-bit on all platforms. 16-bit 
data uses the native endianness of the system (little-endian for x86, big-
endian for PPC), but is otherwise system independant. That goes for capturing 
as well as buffering via alBufferData.

Hope that helps. :)
- Chris


More information about the Openal-devel mailing list