Re: Two AUHALs, one ring buffer, and one AU filter. But no sound.
Re: Two AUHALs, one ring buffer, and one AU filter. But no sound.
- Subject: Re: Two AUHALs, one ring buffer, and one AU filter. But no sound.
- From: john <email@hidden>
- Date: Thu, 1 Jul 2004 19:19:47 -0400
Hi Chilton,
What Robert suggested is good. Though I'm not sure why he says you'll
eventually get audio glitches (can you answer Robert?).
I use a similar method - using MTCoreAudio's MTByteBuffer I grab data
from the input proc, do stuff with it, then when the AudioUnit output
calls back I just return to it the amount of data it wants. I never
have any audio glitches (at least that I notice).
-- John
Hi Chilton,
What you're trying to do is not impossible. You can pass the audio
from the input device (the iMic) through your buffer to the output
device. The syncing issue is that the two devices may be running at
slightly different actual sample rates - even though they're both set
to 44.1 kHz (for example) - meaning that you're eventually going to
get subtle audio glitches.
It sounds like you need to build things bit by bit:
Get input working with your render proc
Then start putting it in the ring buffer.
Then start pulling from the buffer using the render callback from your
Output Unit.
Then insert your filter.
Trying to do it all in one go seems to be adding confusion...?
Best,
Robert.
_______________________________________________
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.