Sample rate property listener
Sample rate property listener
- Subject: Sample rate property listener
- From: email@hidden
- Date: Thu, 01 Jun 2006 18:39:37 -0400
In my host, I want to adjust my synth's sample rate to match the output
device's sample rate.
I added a listener to the (AUHAL) output audio unit:
AudioUnitAddPropertyListener(mOutputUnit, kAudioUnitProperty_SampleRate,
DeviceSampleRateListener, this);
I figured that it would be easier to set up the listener once, and even
if a different device is assigned to the output AU, I would not have to
tear down and recreate the listener.
In any case, I cannot figure out how to test my listener. Changing the
sample rate of my output device in Audio MIDI setup does not seem to
call the listener proc. And also the playback pitch seems fine after I
change the sample rate in AMS. Yet one of my testers with different
output hardware reports that for him, changing the SR in AMS does affect
the pitch of the synth.
Any suggestions?
Thanks!
- Rick
_______________________________________________
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