• 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: What happened to factory presets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What happened to factory presets?


  • Subject: Re: What happened to factory presets?
  • From: Urs Heckmann <email@hidden>
  • Date: Wed, 8 Jan 2003 17:59:32 +0100

Hi Robert,

I also found that my AUs don't get calls to

SetAFactoryPresetAsCurrent (const AUPreset & inPreset)

but only for

NewFactoryPresetSet (const AUPreset & inNewFactoryPreset)

in my usual suspects, when a preset is selected.

I havn't tested with RAX, though (Just went 10.2.3 on Monday, so now my problems with AUGraph-hosts disappeared which will make me open RAX more often from now on :-).

Can anyone explain what's the difference between those?

Shouldn't it be this way:

Set..Current = User has chosen Preset from list
New... = Currently edited user preset overwrites a former factory preset and replaces it for the current session

What about a flag for saveState that determines the user wants to save the whole bank instead of only the current user preset?

Cheers,

;) Urs

Am Mittwoch, 08.01.03, um 14:49 Uhr (Europe/Berlin) schrieb Robert Grant:

There used to be an AUFactoryPreset pre 10.2.3 and my preset selection code worked.

Now they've gone and changing AUFactoryPreset to AUPreset doesn't seem to be
a good solution. Here's what I'm getting:

Setting Matrix Reverb Preset: Large Room, (number 2)
2003-01-08 08:17:39.565 Rax[3309] Set CurrentPreset: -10851

Here's what I'm doing:
AUPreset* preset = // some preset I retrieved earlier to make my menu
UInt32 size = sizeof(AUPreset*);
OSStatus status =
AudioUnitSetProperty(unit,
kAudioUnitProperty_CurrentPreset,
kAudioUnitScope_Global,
0,
preset,
size);

Here's the definition of -10851
kAudioUnitErr_InvalidPropertyValue = -10851, /* same error code but different calling context*/
/* as kAUGraphErr_CannotDoInCurrentContext */

How does setting presets work now? And is the new way backward compatible?

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.
_______________________________________________
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:
    • First Audio Unit - odd rezzy Lowpass filter
      • From: Oli Donald <email@hidden>
    • Re: What happened to factory presets?
      • From: Marc Poirier <email@hidden>
References: 
 >What happened to factory presets? (From: Robert Grant <email@hidden>)

  • Prev by Date: Re: How to retrieve the internal name of a DLS/SF2 file?
  • Next by Date: Re: AU - avoiding crash when unregistering control class
  • Previous by thread: What happened to factory presets?
  • Next by thread: Re: What happened to factory presets?
  • Index(es):
    • Date
    • Thread