Re: linear pcm: 16 or 32 bits?
Re: linear pcm: 16 or 32 bits?
- Subject: Re: linear pcm: 16 or 32 bits?
- From: Jens Alfke <email@hidden>
- Date: Wed, 11 Feb 2009 12:08:27 -0800
On Feb 11, 2009, at 11:01 AM, Joel Reymont wrote:
The hardware default for LPCM seems to be 32 bits per channel and
thus 4 bytes per packet and per frame.
It's most efficient if you use CA's preferred format (32-bit floating-
point) for internal audio buffers. The only reason to use a different
format would be if you have code that wants to manipulate the raw
samples in some other format like 16-bit integer. (I.e. if you're
calling some 3rd party audio code like the LAME encoder.)
For audio that's going to and from external data streams like the
network or files, you should of course encode into whatever data
format makes the most sense (AAC-Low-Latency in your case, for
telephony.) But that's not PCM at all, so this isn't an issue.
—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden