Re: Too many frames to process?
Re: Too many frames to process?
- Subject: Re: Too many frames to process?
- From: Marc Poirier <email@hidden>
- Date: Mon, 23 Dec 2002 13:13:34 +0100 (CET)
>
> Why do all audiounits that I have tried return
>
> kAudioUnitErr_TooManyFramesToProcess
>
> when passed a buffer with > 1024 frames?
>
>
>
> Jeremy
>
>
>
>
AUBase has a member mMaxFramesPerSlice. See AUBase.cpp -
>
AUBase::DoRender() for what's happening.
>
>
Fortunately, there's AUBase::SetMaxFramesPerSlice(UInt32 nFrames) which
>
reallocates Buffers and fires PropertyChanged() (also in AUBase.cpp).
>
Have you tried this?
Actually, a host app has absolutely no awareness of AUBase and what goes
on there (that is all stuff for make writing AUs nice of the AU author :).
It can only communicate with an AU via Component Manager calls and the
extended parameters for AUs. At any rate, the property that you want to
investigate (and probably are not setting) is
kAudioUnitProperty_MaximumFramesPerSlice.
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.