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

Sorry, still no control update


  • Subject: Sorry, still no control update
  • From: Chris Johnson <email@hidden>
  • Date: Sun, 20 Jun 2010 18:59:42 -0400

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


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