Q: Setting the size of an AudioUnit buffer?
Q: Setting the size of an AudioUnit buffer?
- Subject: Q: Setting the size of an AudioUnit buffer?
- From: Lance Drake <email@hidden>
- Date: Fri, 30 Jan 2004 23:11:37 -0700
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.