signed / unsigned pcm format

View: New views
2 Messages — Rating Filter:   Alert me  

signed / unsigned pcm format

by danflu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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...

Thank you very much,
Daniel


_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel

Re: signed / unsigned pcm format

by Chris Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel