Re: AU notify host that state is dirty
Re: AU notify host that state is dirty
- Subject: Re: AU notify host that state is dirty
- From: Olivier Tristan <email@hidden>
- Date: Thu, 20 Oct 2011 11:35:20 +0200
On 10/19/2011 6:30 PM, Stefan Gretscher wrote:
Hi Olivier,
I am not aware of an official guideline how to deal with this, but you could try a property change notification
for kAudioUnitProperty_ClassInfo or kAudioUnitProperty_PresentPreset.
I'd assume listening to kAudioUnitProperty_PresentPreset is rather common, but may have quirks -
hosts could choose to observe this property only if your AU exports at least one factory presets,
or choose not to flag the state dirty when the preset number does not change.
Listening to kAudioUnitProperty_ClassInfo may not be as popular, but for this property I'd definitely expect dirty to be flagged.
If you decide to give this a try, I'd be curious to learn about your success with this in the various hosts...
Well I tried and it leads to some issue at least in DP.
I ended up creating a dummy parameter and fire a
kAUParameterListener_AnyParameter and it works fine.
A bit sad but hey that's life :)
Thanks for the advices
--
Olivier Tristan
Ultimate Sound Bank
_______________________________________________
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