Re: using the Generic AUView
Re: using the Generic AUView
- Subject: Re: using the Generic AUView
- From: Marc Poirier <email@hidden>
- Date: Fri, 18 Oct 2002 06:20:05 +0200 (CEST)
>
Ok - 2 problems...
>
>
You're not seeing the parameters because you've told the view that none of
>
your parameters are writable...
Oh, bitwise mayhem:
outParameterInfo.flags = kAudioUnitParameterFlag_IsReadable
& kAudioUnitParameterFlag_IsWritable;
of course will not work... Thanks for finding that one. :) Now I've
got a rockin generic view going on. (And stupid is me because, all
along, FindUnits has complained that my units have no writable parameters
and I've just said, "Feh, how silly of you!")
>
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
Is that happening in the version that I sent you earlier tonight? It's
not happening for me, and I do do this in the constructor:
AUPreset au_preset;
au_preset.presetNumber = 0;
au_preset.presetName = getpresetcfname(0); // return is valid
SetAFactoryPresetAsCurrent(au_preset);
>
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...
Oh nice, I've found that bug to be exceedingly annoying, thanks for
posting the fix.
>
Oh - (and you're a sick man Marc - what *are* you doing to my loverly
>
music:)
Heh heh heh... Music is not supposed to be lovely. ;-)
More DFX-AU noise to come...
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.