Re: Resampling faster
Re: Resampling faster
- Subject: Re: Resampling faster
- From: Michael Thornburgh <email@hidden>
- Date: Sun, 23 May 2004 11:52:07 -0700
the HAL's default audio buffer size seems to be 512 frames, which at
8000Hz is quite a while (about 1/16th of a second). try setting the
buffer size to a shorter period of time
(kAudioDevicePropertyBufferFrameSize). also, start your output device
before the input one, and (if necessary), flush the transfer buffer
after both devices are running and stable.
-mike
On May 23, 2004, at 8:48 AM, Chilton Webb wrote:
Hi,
I have an 8 khz sound input device, and I need it to play through to
the speakers in a Mac (44.1khz) in real time. Currently, the methods
I've seen used for this employ a transfer buffer, and the buffer is
resampled. This creates a lag of .5 to 1 second. Is there any way to
do this faster?
Thanks,
-Chilton
_______________________________________________
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.