Re: Q: Setting the size of an AudioUnit buffer?
Re: Q: Setting the size of an AudioUnit buffer?
- Subject: Re: Q: Setting the size of an AudioUnit buffer?
- From: Marc Poirier <email@hidden>
- Date: Sun, 1 Feb 2004 14:24:44 -0600 (CST)
You want to set the MaximumFramesPerSlice property (or maybe it's called
MaxFramesPerSlice, but whatever, that's the one).
Marc
On Fri, 30 Jan 2004, Lance Drake wrote:
>
Hi Core-Audio folks,
>
>
After pouring thru the online literature, reading the CoreAudio.pdf
>
and scanning thru the headers, I have still not determined how to set
>
the size of the AudioUnit buffer - or where the default value of
>
512-packets comes from.
>
>
As it is, my chore of reading a file to audio is grabbing 512
>
packets at a clip via the 'ioNumberDataPackets' quantity sent to my
>
inputProcessor routine as setup by the call to
>
AudioConverterFillComplexBuffer which is getting this number from the
>
render process specified by the call to AudioUnitSetProperty where the
>
property is kAudioUnitProperty_SetRenderCallback.
>
>
The solution (I imagine) is to also make a call to
>
AudioUnitSetProperty with the property of
>
kAudioUnitProperty_SetExternalBuffer - but what args I should send in
>
with that call.
>
>
The net result is what sounds like halting audio output that seems
>
to be a result of the buffer being starved because the OS is off doing
>
other things. My thought was that if I use a larger buffer, this
>
negative effect would be eliminated.
>
>
Thanks for your assistance,
>
>
Lance Drake
_______________________________________________
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.