Setting a graph's sample rate
Setting a graph's sample rate
- Subject: Setting a graph's sample rate
- From: Geoff Hufford <email@hidden>
- Date: Thu, 02 Mar 2006 10:09:54 -0600
I am setting up a graph [also described in another question today] using the
kAudioUnitSubType_DefaultOutput and attaching a
kAudioUnitSubType_StereoMixer and then other items to it. By default the
graph is running at 44k but the files I am playing through it are at 48k. I
would prefer to have the whole signal flow at 48k rather than downsampling
each of the files.
I make a Graph and get a AUGraphNewNode for the output unit. I have
attempted to change the rate using AudioUnitSetProperty on the output unit
but that fails. Is it possible to change the rate? Where in the construction
of the graph can I manipulate that? Will I need to directly set the rate for
each item I put in the graph or will that happen automatically as the items
are connected?
I also want to be able to connect this graph to a file writer instead of the
default output, but that is another set of questions I will be throwing at
the list soon.
Thanks,
Geoff Hufford
email@hidden
_______________________________________________
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