Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Control the exact moment of output
@ 2014-04-19 18:21 Rob Janssen
  2014-04-29  7:50 ` Clemens Ladisch
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Janssen @ 2014-04-19 18:21 UTC (permalink / raw)
  To: alsa-devel

For a distributed system that requires synchronized output I would like to determine
the exact moment when output samples are sent, preferably within +/- 1 sample time.
For example, output is sent in blocks with a system time in usec or nsec as a parameter
or header, and the the first sample leaves the soundcard as closely as possible to the
specified system time.

Is this possible within the ALSA API?
Low latency is of course nice to have, but not the prime concern. What I need is
synchronous output between systems that are physically separated and need to send
audio that they receive from a central system over the network.
My intention is to send blocks of audio with an accurate time of transmission in the
header, and then have the systems output it exactly at that time, of course preferably
managed mostly by the driver, not the application.

Are some types of soundcard more suitable than others for this purpose?  And are
there soundcards available where the sample clock can somehow be locked to system
time or an external 10MHz/1PPS reference?

Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-30  8:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-19 18:21 Control the exact moment of output Rob Janssen
2014-04-29  7:50 ` Clemens Ladisch
2014-04-29  8:25   ` Rob Janssen
2014-04-30  6:43     ` Patrick Shirkey
2014-04-30  8:11       ` Rob Janssen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox