Re: AudioUnitSetParameter and Generic UI updates
Re: AudioUnitSetParameter and Generic UI updates
- Subject: Re: AudioUnitSetParameter and Generic UI updates
- From: Marc Poirier <email@hidden>
- Date: Wed, 7 Apr 2004 14:26:24 -0400 (EDT)
I was replying to you, not Jeremy, I realize you're a host, and yes you
are responsible for notifying listeners. And the T-Racks AU is not doing
the correct expected behavior if it's doing what you're expecting. ;)
You don't need to know anything about the parameter listeners in order to
post notifications. Nor do you have to create any of your own listeners.
I'm not suggesting either of those things. But you do need to send
notification. That's why there are those 2 methods, one has no
expectation of posting notifications to any listeners. If you want things
to work properly, use AUParameterSet or follow AudioUnitSetParaemter with
AUParameterListenerNotify (which is basically what AUParameterSet does).
Since you're not using any parameter listeners yourself, you simply pass
NULL for the inSendingListener and inSendingObject arguments (those are
simply options to avoid redundant/circular notifications).
Marc
On Wed, 7 Apr 2004, Robert Grant wrote:
>
Oh - maybe the fact that I didn't mention that I'm a host (not an AU)
>
might be confusing things?
>
>
I'm a host setting parameters on an AU and thus do not know about any
>
other listeners that may have been connected to the AU. Certainly the
>
AU should notify any listeners of changes that come from either the UI
>
or from the host.
>
>
Sorry for the confusion,
>
>
Robert.
>
>
>
On Apr 7, 2004, at 1:46 PM, Robert Grant wrote:
>
>
> Is that a reply to me or to Jeremy?
>
>
>
> If to me, I don't see it as my job to keep an AU's UI in sync with it!
>
> If I change an AU parameter it's the AUs job to keep any open UIs in
>
> sync. Or for that matter if the AU changes its parameters internally -
>
> it should keep its UI in sync.
>
>
>
> Robert.
>
>
>
> On Apr 7, 2004, at 1:37 PM, Marc Poirier wrote:
>
>
>
>> But notifying listeners is the only way that the Generic UI will know
>
>> that
>
>> it needs to update...
>
>>
>
>> Marc
>
>>
>
>>
>
>>
>
>> On Wed, 7 Apr 2004, Robert Grant wrote:
>
>>
>
>>> Hi Jeremy,
>
>>>
>
>>> I don't think so - I don't want to get involved in the listening side
>
>>> (well except when I'm establishing a link between an AU parameter
>
>>> and a
>
>>> MIDI CC). I just want to tell the AU to change a parameter (using
>
>>> AudioUnitSetParameter) and (if the AU's UI is open) for the change to
>
>>> be reflected in the UI.
>
>>>
>
>>> What I'm doing works for many MusicDevices such as buzZer, Claw, any
>
>>> of
>
>>> the LinPlug synths, etc. though there are some notable exceptions.
>
>>>
>
>>> Robert.
>
>>>
>
>>> On Apr 7, 2004, at 11:56 AM, Jeremy Sagan wrote:
>
>>>
>
>>>> Robert,
>
>>>>
>
>>>> I am not sure exactly what you are trying to do but it sounds like
>
>>>> you
>
>>>> should be using AUParameterSet.
>
>>>>
>
>>>> Jeremy
>
>>>>
>
>>>> On Apr 7, 2004, at 11:36 AM, Robert Grant wrote:
>
>>>>
>
>>>>> A follow up...
>
>>>>>
>
>>>>> Now maybe my plugins are way out of date - but I can't find an
>
>>>>> effect
>
>>>>> UI - generic or otherwise - that updates itself based upon changes
>
>>>>> coming from AudioUnitSetParameter.
>
>>>>>
>
>>>>> Is there one around that I can test with?
>
>>>>>
>
>>>>> Thanks,
>
>>>>>
>
>>>>> Robert.
>
>>>>>
>
>>>>>
>
>>>>> On Apr 7, 2004, at 11:14 AM, Robert Grant wrote:
>
>>>>>
>
>>>>>> I just added MIDI remote control for Apple's effects using
>
>>>>>> AudioUnitSetParameter to change the values and to my surprise and
>
>>>>>> disappointment the UI does not update even though the AU
>
>>>>>> recognizes
>
>>>>>> the changes and changes the DSP. I would have thought the generic
>
>>>>>> UI
>
>>>>>> code would have been updated to post notifications when this
>
>>>>>> function is called? It makes automation/remote control a lot more
>
>>>>>> friendly.
>
>>>>>>
>
>>>>>> Thanks,
>
>>>>>>
>
>>>>>> Robert.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.