On Fri, May 28, 2004 at 12:38:03PM -0700, Fernando Pablo Lopez-Lezcano wrote:
Hmm, it would
be a fun project then to come up with a profiler of various
audio cards by recording and then capturing a specific buffer of audio data.
Then by comparing them (assuming that this drift is constant) see how many
empty samples there are (or if the playback is slower, how many samples are
missing), and then create a framework that allows real-time resampling in
order to compensate for that discrepancy whenever multiple soundcards are
being used :-D
Yes, of course that is doable. I don't think you need to profile them.
Just measure the drift between the hardware pointers for both cards as
you play.
I've been playing with a prototype of just that the last days. It works...
--
Fons