Problems with AUPitch and sample rate (perhaps S/R change problems in general)
Problems with AUPitch and sample rate (perhaps S/R change problems in general)
- Subject: Problems with AUPitch and sample rate (perhaps S/R change problems in general)
- From: "B.J. Buchalter" <email@hidden>
- Date: Fri, 14 Jul 2006 20:48:50 -0400
- Thread-topic: Problems with AUPitch and sample rate (perhaps S/R change problems in general)
Hi Folks,
If I have an AUPitch set to do no processing, and I have everything set to
44100, then the plugin does no processing -- it just delays the audio by the
plugin's latency.
If on the otherhand, I change to 48000, the plugin appears to change the
pitch, and the reported latency seems to be wrong.
When I change the sample rate, I do the following:
err = AudioUnitUninitialize(mInstance);
err = AudioUnitSetProperty(mInstance, kAudioUnitProperty_SampleRate,
kAudioUnitScope_Global, 0, &caSR, size);
err = AudioUnitInitialize(mInstance);
Is this sufficient, or is there more to it? Do I need to adjust the sample
rates for the IO formats as well?
This code appears to work fine for other AU plugs, like the Apple supplied
Eqs, but it seems to have problems for the AUPitch, which is my testcase for
a plug with latency.
Any suggestions?
Thanks!
B.J. Buchalter
Metric Halo
5 Donovan Drive
Hopewell Junction, NY 12533 USA
tel +1 845 223-6112
fax +1 603 250-2451
_______________________________________________
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