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

Re: mCurrentPreset


  • Subject: Re: mCurrentPreset
  • From: Marc Poirier <email@hidden>
  • Date: Sat, 26 Oct 2002 23:16:35 +0200 (CEST)

> Is there any chance of making mCurrentPreset protected instead of
> private in AUBase?

Just do it, dude. You can mess around with the AUBase* sources to your
heart's content. I mean, if you start changing things that break how an
AU is required to behave, that's a problem, but things like what you're
talking about, no problem. Or write an accessor if you prefer. Although
that's not really necessary, okay, I just happen to have this code sitting
around from a couple weeks back when I wasn't yet so bold as to change the
base sources and I was encountering the same issue as you (overriding
SaveState and RestoreState), so for what it's worth, if you want a copy of
mCurrentPreset:

AUPreset fake_mCurrentPreset;
DispatchGetProperty(kAudioUnitProperty_CurrentPreset,
kAudioUnitScope_Global, 0, &fake_mCurrentPreset);


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

References: 
 >mCurrentPreset (From: Art Gillespie <email@hidden>)

  • Prev by Date: mCurrentPreset
  • Next by Date: pHATmatik AU
  • Previous by thread: mCurrentPreset
  • Next by thread: Re: mCurrentPreset
  • Index(es):
    • Date
    • Thread