Re: when to set kAudioUnitProperty_MaximumFramesPerSlice
Re: when to set kAudioUnitProperty_MaximumFramesPerSlice
- Subject: Re: when to set kAudioUnitProperty_MaximumFramesPerSlice
- From: Marc Poirier <email@hidden>
- Date: Tue, 18 Feb 2003 16:23:21 +0100 (CET)
>
I would expect that this is a property that should only be called
>
before you initialize an Audio Unit...
Okay, thanks for the clarification. I was thinking, since this is also
what you have said regarding changes to StreamFormat, perhaps
AUBase::DispatchSetProperty should do something in the cases for
kAudioUnitProperty_StreamFormat
and kAudioUnitProperty_MaximumFramesPerSlice like:
if ( IsInitialized() )
return kAudioUnitErr_CannotDoInCurrentContext;
(Theres's a kAudioUnitErr_Uninitialized but no kAudioUnitErr_Initialized,
so I guess that would be the most appropriate error.)
>
If you return an error from this call as you have been initialized,
>
what does the host do then?
Ignore the error (so far as I can tell).
>
We could also talk with the "host" company and see if this behaviour
>
can be changed...
The author is on this list, and it will be taken care of now. :)
Thanks,
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.