Re: using the Generic AUView
Re: using the Generic AUView
- Subject: Re: using the Generic AUView
- From: Bill Stewart <email@hidden>
- Date: Thu, 17 Oct 2002 18:34:17 -0700
Ok - 2 problems...
You're not seeing the parameters because you've told the view that none of
your parameters are writable...
In GenericAUView.CreateUI there's this test:
if (!(paramInfo.flags & kAudioUnitParameterFlag_IsWritable)
|| (paramInfo.flags & kAudioUnitParameterFlag_ExpertMode))
continue;
Your param info isn't passing this, so the generic view is not showing it -
we don't show non-writable params (we probably should show a static-text
printout of the value here:)
Secondly - you aren't getting a menu item selected in your presets because
this call (that the view makes):
AudioUnitGetProperty (mView->GetEditAudioUnit(),
kAudioUnitProperty_CurrentPreset,
kAudioUnitScope_Global,
0,
&defaultPreset,
&propertySize);
Is getting back a value of defaultPreset.presetNumber==-1
This is actually technical incorrect - typically the default (initialized)
state of the audio unit - where all the parameter values are set to default
- should also apply to having one of your presets also set as the default -
so you should indicate this...
In the Reverb units constructor we make the following call):
SetAFactoryPresetAsCurrent (sRoomPresets[kRoomPresetDefaultIndex]);
(That preset correlates to the default preset of the paramters of the
reverb)
BTW - in AUHosting there's a bug in the DoCommand call - if you remove the
initial HasPlayer call (right at the top of the method) and just put it
if (HasPlayer) { .. Do play or do stop }
(ie in the case statements for play or stop) - then you can look at the UI
of an AudioUnit without having to have dragged a file in and selected it...
Bill
(ps - thought I'd post this to the list, because its probably good general
information)
Oh - (and you're a sick man Marc - what *are* you doing to my loverly
music:)
on 17/10/02 4:41 PM, Marc Poirier wrote:
>
> That's weird...
>
>
>
> Are you reporting your parameters correctly?
>
>
I think so. Logic sees the parameters. So does FindUnits.
>
>
> I wouldn't mind digging into this (if you want to send me your AU I don't
>
> mind looking into this)
>
(snip)
--
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.