More VariSpeed questions
More VariSpeed questions
- Subject: More VariSpeed questions
- From: Ethan Funk <email@hidden>
- Date: Fri, 19 Nov 2004 11:55:48 -0700
I am trying to implement input play through. Ultimatly, I need to be
able to do this across different devices, but for the moment, I am
experimenting with the simple case of playing through the same audio
device. Here is the problem I am having:
1. clicking in the resulting audio
2. fill and read of the ring buffer are out of sync... buffer runs out
after a few seconds. Strange considering both fill and read is being
done by the same audio device.
Here is my basic set up:
outputdevice(HAL 44.1ksps)<-MatrixMixer(96ksps)<-VariSpeed(fixed 44.1
to 96ksps)<-ringBufferRead call back
inputdevice(same as output)->ringBufferFill callback
Originally, I was adjusting the VariSpeed in a call back between the
Mixer and the VariSpeed to keep thinns synced using the scalarRate
portion of the time stamp. But this did not appear to work, so I
simplified with a fixed ration and a common audio IO device. Still no
go. What am I doing wrong?
To confuse me even further, I can't find any place in the example code
(ComplexPlayThru) where the VariSpeed is adjusted to track device clock
drifts.
Thanks,
Ethan...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden