Re: Sorry, still no control update
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
Date: June 20, 2010 3:59:42 PM PDT
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