Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AU hosting: automation, presets and GUI updating




On Nov 4, 2009, at 12:31 PM, Paul Davis wrote:

On Wed, Nov 4, 2009 at 3:08 PM, William Stewart <email@hidden> wrote:
There are two things that the host needs to do that I think you aren't
doing.

thanks a lot.

(1) AudioUnitSetParameter is not sufficient when you change the value of a
parameter with views around.

actually, i am using the apple utility library's CAAudioUnit::SetParameter method, and just noted what it does internally. it appears to ask the plugin if it has a "fast dispatch" method for setting parameters, and uses it; otherwise it just calls AudioUnitSetParameter(). could it be that this changed since Tiger, or was it never doing the right thing?

It doesn't do the utility stuff - in your reply you deleted the sentence that tells you what you need to do (I find this quite frustrating). Here it is again:


>>>
views around. You should look through <AudioToolbox/ AudioUnitUtilities.h> - there are two alternatives there:
- AUParameterSet (which both calls AudioUnitSetParameter for you, and does the AUEvent listener notify)
- Call AudioUnitSetParameter, then AUEventListenerNotify
>>>


Bill


_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >AU hosting: automation, presets and GUI updating (From: Paul Davis <email@hidden>)
 >Re: AU hosting: automation, presets and GUI updating (From: Olivier Tristan <email@hidden>)
 >Re: AU hosting: automation, presets and GUI updating (From: Paul Davis <email@hidden>)
 >Re: AU hosting: automation, presets and GUI updating (From: William Stewart <email@hidden>)
 >Re: AU hosting: automation, presets and GUI updating (From: Paul Davis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.