• 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
Re: GetParameterList in ableton Live problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GetParameterList in ableton Live problem


  • Subject: Re: GetParameterList in ableton Live problem
  • From: "Dave Hoskins" <email@hidden>
  • Date: Wed, 2 Aug 2006 17:53:52 +0100

* I thought I needed AU*PARAMETER*ListenerNotify for automation purposes?

Not in your AU - who ever sets the value of the parameter is responsible for also notifying potential listeners of this change.

O.K. I've noticed some hosts don't call my own listeners I have to notify my gui on things like preset changing. Also I have my own 'next preset' button, that needs to run through the parameters, if I remove my listener notify calls my gui isn't notified. How else am I officially meant to inform my gui of changes?


I set up my gui listener like this:

// install a parameter listener for every parameter
OSStatus status = AUListenerCreate(EffectAUParameterListenerProc, this,
CFRunLoopGetCurrent(), kCFRunLoopDefaultMode, 1.0f / 25.0f, // ms
&parameterListener);
if (status != noErr) parameterListener = NULL;


if (parameterListener != NULL)
{
allParams.mAudioUnit = unit;
allParams.mScope = kAudioUnitScope_Global;
allParams.mElement = (AudioUnitElement)0;
for (AudioUnitParameterID i=0; i < TAGnumParams; i++)
{
allParams.mParameterID = i;
AUListenerAddParameter(parameterListener, editor, &allParams);
}
}


With the listener calling my gui like this:

static void EffectAUParameterListenerProc(void * inRefCon, void * inObject, const AudioUnitParameter * inParameter, Float32 inValue)
{
if ( (inObject == NULL) || (inParameter == NULL) ) return;


((Editor*)inObject)->setParameter((VstInt32)(inParameter->mParameterID), inValue);
}



_______________________________________________ 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
  • Follow-Ups:
    • Re: GetParameterList in ableton Live problem
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: mapping a CoreAudio device to a USB device
  • Next by Date: Re: GetParameterList in ableton Live problem
  • Previous by thread: Re: Setting an aggregate device to appear to be stereo
  • Next by thread: Re: GetParameterList in ableton Live problem
  • Index(es):
    • Date
    • Thread