• 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: Presets etc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Presets etc.


  • Subject: Re: Presets etc.
  • From: Pavol Markovic <email@hidden>
  • Date: Tue, 27 Apr 2004 16:46:38 +0200

For notifying host I use this in AUBase subclass:

PropertyChanged(kAudioUnitProperty_PresentPreset,
kAudioUnitScope_Global, 0);
PropertyChanged(kAudioUnitProperty_CurrentPreset,
kAudioUnitScope_Global, 0); // deprecated

But works only in Rax... as I've tested...

PM

On 27.4.2004, at 15:13, Michael Kleps [reFX] wrote:

> Hi all,
>
> when loading my AU, Logic asks for a list of AUPresets in "GetPresets"
> and I provide a list of 128 AUPresets. Works fine. I can choose a
> preset from within Logic.
>
> But how can I notify Logic that this list has changed? (new presets
> have been loaded by a plugin internal function).
>
> And how can I tell the host that the user selected another preset (out
> of the 128 list). I can select one of the 128 presets with Logic, but
> if the users uses e.g. a program-change I would like to notify Logic
> that the current preset changed. I tried:
>
> DispatchSetProperty (kAudioUnitProperty_CurrentPreset,
> kAudioUnitScope_Global, 0, &AU_Presets[i], sizeof (AUPreset));
> DispatchSetProperty (kAudioUnitProperty_PresentPreset,
> kAudioUnitScope_Global, 0, &AU_Presets[i], sizeof (AUPreset));
> SetAFactoryPresetAsCurrent(AU_Presets[i]);
>
> AU_Preset is an array of 128 "AUPreset"s.
> "i" is the current preset-number.
>
> I call all three functions (just to make sure) but Logic doesn't
> update it's display to reflect the change.
>
> Do I make any sense? Should I give up and lie to the host by telling
> him I have no presets, so the list isn't even displayed and so the
> user is forced to use my plugins internal preset-management? The
> downside would be that I would be forced to put in my own
> preset-management into every plugin I want to release as an
> AudioUnit...
>
> Hope somebody can help me.
>
> Cheers,
> Mike
> _______________________________________________
> 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.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


  • Follow-Ups:
    • Re: Presets etc.
      • From: William Stewart <email@hidden>
References: 
 >Presets etc. (From: "Michael Kleps [reFX]" <email@hidden>)

  • Prev by Date: AudioUnits & midi
  • Next by Date: Re: AudioUnits & midi
  • Previous by thread: Presets etc.
  • Next by thread: Re: Presets etc.
  • Index(es):
    • Date
    • Thread