Skip to main content

avb_stream/
lib.rs

1//! AVTP audio streams for talker and listener entities: AAF and
2//! AM824 frames built and read (IEEE 1722-2016, 7 and 6.4), sent paced on
3//! gPTP time and received into a buffer the audio device plays, with
4//! audio from and to the computer's devices through cpal, a test tone or
5//! nothing; and media clock streams, CRF (10), on the same time.
6//!
7//! The media clock is gPTP's: a talker sends its samples at the nominal
8//! rate of gPTP time, as gptpd gives it for the interface, and
9//! the audio device, on its own clock, is kept in step by resampling
10//! between the two, the ratio steered by the fill of a buffer between
11//! them.
12
13pub mod aaf;
14pub mod am824;
15pub mod audio;
16pub mod clock;
17pub mod crf;
18pub mod formats;
19pub mod listener;
20mod lock;
21pub mod media;
22mod meter;
23pub mod realtime;
24pub mod recovered;
25pub mod talker;
26
27pub use clock::MediaClock;
28pub use listener::{GroupListener, Listener, ListenerConfig, ListenerGroup, ListenerStats};
29pub use recovered::RecoveredClock;
30pub use talker::{
31    GroupConfig, GroupStream, GroupTalker, Talker, TalkerConfig, TalkerGroup, TalkerStats,
32};