Re: mCurrentPreset
Re: mCurrentPreset
- Subject: Re: mCurrentPreset
- From: Bill Stewart <email@hidden>
- Date: Mon, 28 Oct 2002 09:13:44 -0800
Actually:)
Why? What do you want to do with this... AUBase should be able to define the
complete behaviour of this variable - what are you wanting to do with this?
Bill
on 26/10/02 1:16 PM, Marc Poirier wrote:
>
> 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.
--
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
__________________________________________________________________________
_______________________________________________
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.