Subject: Re: [ecasound] cloops, synchronization
From: Kai Vehmanen (k@eca.cx)
Date: Tue Apr 04 2000 - 18:25:47 EEST
On Tue, 4 Apr 2000, Petr Kristan wrote:
> First recorded tracks were drifted against next. Drift time depends
> on buffer length. Why? Program can calculate diference from sample
> rate and buffer size. Or there is another problem.
Hmm, what were the exact command lines you used when recording?
Ecasound does try to sync tracks, but the are a few things that
can go wrong:
(a) first ecasound reads 'buffersize' samples from the monitor track(s)
and fills soundcard output buffers with this data -
nothing is written to output files
(b) at this point all soundcard devices are triggered at the same time
(this is most accurate with OSS drivers if the card supports
triggering)
(c) to compensate for possible sync-drift, ecasound checks
how much samples have the soundcard devices processes so far
(fetched directly from the driver-level) and forward/rewinds
the output files based on this information
Problem is either with (b) or (c). In both cases, however, using
a small buffersize helps. You usually get good results with -b:128 and
-b:256.
> If we try only play one mono recorded track with ecasound, then there
> were weakly audiable cloops. Cloop bursts were repeated with
> frequency depended on buffer size. Then we try to play track with
> sox's play and sound was ok. We tried older version 1.6 ecasound with
Hmm, this is new. How about with aplay (comes with ALSA)?
-- Kai Vehmanen <k@eca.cx> ---------------- CS, University of Turku . . audio software for linux ... http://www.eca.cx . . armchair-tunes mp3/wav/ra .. http://www.wakkanet.fi/sculpcave .-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request@wakkanet.fi>.
This archive was generated by hypermail 2b28 : Tue Apr 04 2000 - 19:51:29 EEST