• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: AUValidation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: debugging AudioUnits
  • Next by Date: ObjC Midi Input prob. (Was Re: Developing Tool for Audio program)
  • Previous by thread: Re: AUValidation
  • Next by thread: Obj C and C with CoreMidi
  • Index(es):
    • Date
    • Thread