In the telecom industry there is a special term, if I remember correctly, it's
"bit shaving".

The idea is like this: suppose you're on serial (RS232) link with TWO stop bits,
but the frequencies are slightly out of sync.

The protocol is implemented in such a manner, that if the second stop
bit is slightly shorter than nominal, the system will still work. That's because
the bits are sampled by internal clock anyway, so if a bit is sampled as
one, it is considered to be full length one.

So, the smart controllers monitor phase difference and slightly "shave"
(i.e. shorten by adjustable portion) the second stop bit to compensate for it.

In audio a smart thing would be to drop/add samples in the intervals of
(near) silence.

Whatever...

I just use 'streamripper' and play back files rather than real time stream.

On Fri, 30 Dec 2005 12:45:48 +1000
Adam Nielsen <[EMAIL PROTECTED]> wrote:

> > It might be even worse.  The cards most likely have independent clock
> > generators.  In such a case, there will be (slightly) different
> > playback speed of left and right channels.
> 
> I've always wondered about this.  Fair enough that two cards would play
> back sound at slightly different speeds, but why can't you just drop a
> sample or two every few milliseconds or so, to keep the sound roughly in
> sync?
> 
> Cheers,
> Adam.
> 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to