Getting the initial Automation parameter value
Getting the initial Automation parameter value
- Subject: Getting the initial Automation parameter value
- From: Jeremy Sagan <email@hidden>
- Date: Wed, 22 Mar 2006 18:26:06 -0500
Hello,
I am trying to implement automation so that I can get the original
value before the user changes anything. To do this I try calling
AudioUnitCarbonViewSetEventListener to set my event listening
procedure so I can get the mousedown in the control before the value
is modified. Here is my listener:
static void myAUEventListener(void * inUserData, AudioUnitCarbonView
inView,
const AudioUnitParameter * inParameter,
AudioUnitCarbonViewEventID inEvent, const void *inEventParam)
{
switch (inEvent)
{
case kAudioUnitCarbonViewEvent_MouseDownInControl:
EFXAutomationBegin();
AutomateAUParameter(blah, inParameter, blah);
break;
case kAudioUnitCarbonViewEvent_MouseUpInControl:
EFXAutomationEnd();
break;
}
}
The problem is that for a lot of AU's the value has already changed
from what is presented in the AU's editor if I retrieve it within my
AutomateAUParameter procedure with:
AudioUnitGetParameter(m_audioUnit, AUID, kAudioUnitScope_Global, 0,
&value);
Am I doing something wrong or are these AU's out of spec?
Thanks,
Jeremy
_______________________________________________
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