• 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: Sorry, still no control update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorry, still no control update


  • Subject: Re: Sorry, still no control update
  • From: William Stewart <email@hidden>
  • Date: Mon, 21 Jun 2010 15:27:52 -0700

Chris

We just went through this with the FilterDemo in AULab and everything is behaving as we would expect it to (both with user and factory presets). So, have you tried your AU with the AULab application?

Bill

On Jun 21, 2010, at 3:17 PM, Michael Hopkins wrote:

I downloaded the filterDemo from the ADA site. Built and ran it. 

It does have two Factory presets. Switching between these works correctly. I also created my own user preset which works correctly.

-michael

From: Chris Johnson <email@hidden>
Date: June 20, 2010 3:59:42 PM PDT
To: CoreAudio API <email@hidden>
Subject: Sorry, still no control update

I'm sorry, I'm still nowhere with the control update situation. I'm trying to make controls in a Cocoa view go to the setting corresponding to what's been saved as parameter settings- the view will not update.

Yes, FilterDemo does refresh its view on launch to the saved state: it does this-

ComponentResult Filter::Initialize()
{
ComponentResult result = AUEffectBase::Initialize();

if(result == noErr )
{
// in case the AU was un-initialized and parameters were changed, the view can now
// be made aware it needs to update the frequency response curve
PropertyChanged(kAudioUnitCustomProperty_FilterFrequencyResponse, kAudioUnitScope_Global, 0 );
}

return result;
}


I need to update controls attached to parameters that look like this, as in the generic examples:

Float32 gain = GetParameter( kParam_One )/40;

The preset saving code won't help, because you know in the built demos those presets don't do anything. Nothing happens.

I'm trying to find something reasonably bulletproof that works with normal Cocoa controls as seen in Interface Builder.. notably NSSlider and NSSlider in dial form. I'll work around the issues those present if I can get the things to refresh and/or update their values from code within Process (no, I won't be trying to update them every sample)

Chris Johnson

 _______________________________________________
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

References: 
 >Sorry, still no control update (From: Chris Johnson <email@hidden>)

  • Prev by Date: Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm
  • Next by Date: Re: AUMonotimbralInstrumentBase (synthesiser) best design practices
  • Previous by thread: Sorry, still no control update
  • Next by thread: Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
  • Index(es):
    • Date
    • Thread