• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting the initial Automation parameter value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: crashing in calls to AudioConverter on 10.3.9
  • Next by Date: using coreaudio to record to file and plaback from file
  • Previous by thread: Re: detecting mono vs. stereo?
  • Next by thread: using coreaudio to record to file and plaback from file
  • Index(es):
    • Date
    • Thread