Re: How to set buffer size for Audio Output Unit?
Re: How to set buffer size for Audio Output Unit?
- Subject: Re: How to set buffer size for Audio Output Unit?
- From: Christof Faller <email@hidden>
- Date: Fri, 31 Aug 2001 15:44:58 -0400
Doug,
One thing you can do now is ask the output unit for the underlying
AudioDevice it is talking to, and change its buffer size via the
lower-level API:
Thanks, it works! I increased the AudioOutputUnit buffer size by
increasing the
device buffer size. Now I have enough time within AudioUnitCallback to do
my processing.
An interesting (however obvious) observation which I made:
For a given output device I can set the buffer size. If SRA/SRD*BS is not
an integer, then the AudioOutputUnit will be called with buffer sizes
varying +-1 (SRA = sample rate audio unit, SRD sample rate device,
BS = device buffer size).
Thanks!
Chris