Re: Setting a graph's sample rate
Re: Setting a graph's sample rate
- Subject: Re: Setting a graph's sample rate
- From: Geoff Hufford <email@hidden>
- Date: Thu, 02 Mar 2006 11:22:53 -0600
> Are you changing the sample rate on the input scope or the output
> scope? The difference is between changing the re-sampler in the
> Output unit and changing the hardware itself (which might not support
> the sample rate you want in the first place).
Thanks David. That does look like the first thing I was doing wrong.
I now set the kAudioUnitScope_Input of the OutputUnit to 48000 after the
graph and mixer nodes are connected but prior to AUGraphUpdate and
AUGraphInitialize. Incidentally it errors if I try to set the Input or
Output rate of the Mixer (I donĀ¹t know if I need to).
Prior to AUGraphInitialize, AudioUnitGetProperty (m_output,
kAudioUnitProperty_SampleRate, kAudioUnitScope_Input...) Is 48000. After
AUGraphInitialize it is 44100. I am still missing something.
Geoff
_______________________________________________
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