Re: Automation record ?
Re: Automation record ?
- Subject: Re: Automation record ?
- From: email@hidden
- Date: Wed, 27 Nov 2002 12:16:34 +0100
Somehow you have to tell the external world that you've changed
something that it knows about...
So, instead of calling AudioUnitSetParameter you can use the
AUParameterSet call that is defined in
<AudioToolbox/AudioUnitUtilities.h> - that will notifiy any listeners
(like Logic your host) that your GUI has changed the value of a
parameter - that is how the Generic View works for instance (and the
view that Logic puts up).
I've changed my code to that :
index is the index of the param (long) ; value, its value (float).
::AudioUnitParameter au_param;
au_param.mAudioUnit = _component; // audio unit component instance
au_param.mParameterID = static_cast < ::AudioUnitParameterID> (index);
au_param.mScope = ::kAudioUnitScope_Global;
au_param.mElement = 0;
::OSStatus err = ::AUParameterSet (
0,
0,
&au_param,
static_cast < ::Float32> (value),
0
);
assert (err == ::noErr);
The call won't fail, my audio unit is getting the right value,
so the dsp part refresh well.
But I'm still not able to record automation...
It seems that it has something to do with the first field of
AuParameterSet. I've search the archive on it, but 0 is often
passed, and it seems to work for them... So what does it fails
for me ?
Thanks,
Raphael
_______________________________________________
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.