Re: setting Audio Unit custom parameters
Re: setting Audio Unit custom parameters
- Subject: Re: setting Audio Unit custom parameters
- From: Marc Poirier <email@hidden>
- Date: Tue, 6 Jul 2004 08:59:18 -0400 (EDT)
On Tue, 6 Jul 2004, Asher Vander Heiden wrote:
>
Hi all,
>
>
Thanks to everyone who sent in stuff on the audio file extentions !!!!
>
My working partner and I have had a similar debate on the subject.
>
I've decided to create my rendered Audio files with whatever extention was
>
on the original file. That way its up to the user to decided what to do with
>
the resulting messy situation.
>
>
Anyway enough of that....
>
>
My new question is about setting parameters to an Audio Unit from an extenal
>
source.
>
I've been working with 'auprocess.cpp' and I would like to know how to set
>
my custom parameters within the 'Audio Unit' from the 'auprocess.cpp'?
>
>
At the moment I have a sample rate converter as my 'Audio Unit'. The sample
>
rate converter needs to know what sample rate it will be converting to. I
>
have to be able to tell it this from within the 'auprocess.cpp' (i.e. set my
>
custom parameter (mSampleRate) to something like 44100).
>
>
I have an Idea that this maybe the job of the preset file ?!?
>
>
I would greatly appreciate it if someone could direct me to a place I can
>
start to find out how to do this. A reference to the documentation would be
>
great or perhaps some sample code.
/Developer/Documentation/CoreAudio/AudioUnits/Topics/au_params.html#AudioUnitSetParameter
/Developer/Documentation/CoreAudio/AudioUnits/Topics/au_utils.html#AUParameterSet
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.