Re: Setting AudioQueue input device and format?
Re: Setting AudioQueue input device and format?
- Subject: Re: Setting AudioQueue input device and format?
- From: Brian Willoughby <email@hidden>
- Date: Thu, 10 Mar 2011 17:17:50 -0800
On Mar 10, 2011, at 14:25, Rick Mann wrote:
Format: I want the data in the exact same format that it comes out
of the device. The Programming Guide first has me set a recording
audio format, and then create the audio queue and ask it for the
input format. What's the right way to ensure that the data in the
buffers I get is the exact data output by the device?
I would suggest that the most important aspect of the format is the
sample rate. Make sure your graph is processing at the native rate
of your input hardware. Apart from that, there really is no
advantage to working in 16-bit just because the input data is 16-
bit. It's perfectly fine to convert any input format to 32-bit float
and leave it at that. The rest of your math will be much simpler
with float, and you'll also have access to all of the existing
AudioUnits that are designed for the canonical format.
Again, only the sample rate is important. Don't fret about the rest
of the format details unless your device somehow delivers more than
25-bit fixed or 32-bit float.
Brian Willoughby
Sound Consulting
_______________________________________________
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