• 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
Re: AU notify host that state is dirty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AU notify host that state is dirty


  • Subject: Re: AU notify host that state is dirty
  • From: Stefan Gretscher <email@hidden>
  • Date: Wed, 19 Oct 2011 18:30:56 +0200

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...

Best,
Stefan

Am 11.10.2011 um 10:42 schrieb Olivier Tristan:

> Hi Guys,
>
> In my Audio Units, there is no parameters, but I would like to notify the host that my state is dirty.
> Reason is, some host like DP do not ask for saving if they don't see changes in plugins
>
> I've tried that
>
> AudioUnitParameter changedUnit;
> changedUnit.mAudioUnit = m_ci; // m_ci is my AudioUnit parameter given in the ctor
> changedUnit.mParameterID = kAUParameterListener_AnyParameter;
> OSStatus err = AUParameterListenerNotify(NULL, NULL,&changedUnit);
>
> but it doesn't work
>
>
> Is there an issue because there is no parameter so kAUParameterListener_AnyParameter does nothing ?
> Or is DP forgot to listen to some property ?
>
> What would be the best solution to fix this ?
> I'm not a huge fan of creating a dummy parameter.
>
> Thanks,
>
> --
> 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

 _______________________________________________
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

  • Follow-Ups:
    • Re: AU notify host that state is dirty
      • From: Olivier Tristan <email@hidden>
References: 
 >AU notify host that state is dirty (From: Olivier Tristan <email@hidden>)

  • Prev by Date: Re: Silent AudioRender/ExtAudio Recording Failure
  • Next by Date: Re: User-land CoreAudio driver timing problem
  • Previous by thread: Re: AU notify host that state is dirty
  • Next by thread: Re: AU notify host that state is dirty
  • Index(es):
    • Date
    • Thread