Peculiarities setting the sample rate
Peculiarities setting the sample rate
- Subject: Peculiarities setting the sample rate
- From: Alex Weiss <email@hidden>
- Date: Fri, 03 Jun 2011 20:50:35 +0200
Hi,
I'm having difficulties setting the sample rate of my device (with kAudioDevicePropertyNominalSampleRate). It seems the change is not registered until after I quit and open my application again; the first time round, AudioObjectGetPropertyData always returns the old sample rate and my audio plays indeed back at the wrong SR. What's even more peculiar is that while AudioObjectGetPropertyData keeps returning the old sample rate, Audio MIDI Setup (which I keep open together with HALLab for debugging purposes) immediately changes to the new sampling rate when my application is running. What am I doing wrong?
To anticipate some of the criticism that will follow: I understand that regular applications should not change the SR of a device and instead adapt to whatever the device's SR is set to (either using AUHAL to perform SRC or do it themselves if using the HAL). But for pro audio applications, that is simply not an option -- I don't know of a single professional audio application that doesn't let the user choose the sample rate.
Thanks,
Alex
_______________________________________________
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