Re: mCurrentPreset
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.