Device sample rates and stream virtual formats
Device sample rates and stream virtual formats
- Subject: Device sample rates and stream virtual formats
- From: "Stephen F. Booth" <email@hidden>
- Date: Sat, 31 Jul 2010 14:29:39 -0700
When one sets a device's sample rate (kAudioDevicePropertyNominalSampleRate), is it expected that the device's streams will change their virtual formats (kAudioStreamPropertyVirtualFormat) to match the new sample rate?
I searched the archives and documentation and wasn't able to find any clarification on the matter.
This is the behavior that I've been seeing with the built-in audio on my MacBook Pro as well as on two different external USB DACs. I recently acquired a FireWire audio interface and it seems that most of the time, but not all of the time, the virtual format changes along with the device's sample rate. When the virtual format does not change but the sample rate does, strange things happen since I end up sending audio at the wrong rate to the stream.
I should probably note that I register property listeners on the device and stream, and use them to determine when I need to adjust the audio format I'm sending.
Stephen
_______________________________________________
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