Fwd: AUValidation
Fwd: AUValidation
- Subject: Fwd: AUValidation
- From: stiwi kirch <email@hidden>
- Date: Tue, 30 Dec 2003 19:43:58 +0100
Begin forwarded message:
>
From: stiwi kirch <email@hidden>
>
Date: 30. Dezember 2003 19:09:44 MEZ
>
To: Marc Poirier <email@hidden>
>
Subject: Re: AUValidation
>
>
>
On 30.12.2003, at 19:15, Marc Poirier wrote:
>
>
> Well, no host can possibly call Filter::reset(). It is more a string
>
> of
>
> calls that leads to that, from your own code. What the crash log was
>
> showing was that the host was setting the ClassInfo property, which
>
> leads
>
> to a call (via the AUBase SDK) to RestoreState(), and from there you
>
> were
>
> making calls to SetParameter(), and in there you made a call to
>
> Filter::reset(). So the mistake was assuming that calls to
>
> SetParameter()
>
> or RestoreState() would not occur unless the AU was Initialized.
>
> Initialization is only intended to prepare resources needed for DSP
>
> rendering, not for preparing the AU for general property and parameter
>
> setting and getting. The AU should be prepared for that stuff whether
>
> Initialized or not.
>
>
That's exactly what i meant, but you are right. Thats the correct
>
analysis.
>
>
> Well... don't change parameter values during Initialize(). ;)
>
> Without
>
> knowing what exactly you are doing in your Initialize()
>
> implementation,
>
> it's hard to say much more than that.
>
>
At some point after my VCO, VCF, VCA,LFO, etc. inits, which are done
>
in Initialize(), i need to set up my default parameter values
>
>
for (int i = 0; i < kNumberOfParameters; i++)
>
SetParameter(i, kAudioUnitScope_Global, 0,
>
sParameterInfo[i].defaultValue, 0);
>
>
Right now this is done as last step in Initialize() and has to be
>
changed. I know that now.
>
>
stiwi
_______________________________________________
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.