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

Presets etc.


  • Subject: Presets etc.
  • From: "Michael Kleps [reFX]" <email@hidden>
  • Date: Tue, 27 Apr 2004 15:13:25 +0200

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.


  • Follow-Ups:
    • Re: Presets etc.
      • From: Pavol Markovic <email@hidden>
  • Prev by Date: CoreAudio Swiki now requires a password?
  • Next by Date: CoreAudio swiki
  • Previous by thread: CoreAudio Swiki now requires a password?
  • Next by thread: Re: Presets etc.
  • Index(es):
    • Date
    • Thread