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//!
13//! With `AVB_STREAM_TIMING` naming a file, each talker's thread writes
14//! there a line a second: how late it woke for its frames, how often it
15//! was already behind, and how long building and sending them took,
16//! counted by the thread itself and written by one of ordinary
17//! priority. Without it, the thread keeps no time of its own.
18
19pub mod aaf;
20pub mod am824;
21pub mod audio;
22pub mod clock;
23pub mod crf;
24pub mod formats;
25pub mod listener;
26mod lock;
27pub mod media;
28mod meter;
29pub mod realtime;
30pub mod recovered;
31pub mod talker;
32mod timing;
33
34pub use clock::MediaClock;
35pub use listener::{GroupListener, Listener, ListenerConfig, ListenerGroup, ListenerStats};
36pub use recovered::RecoveredClock;
37pub use talker::{
38 GroupConfig, GroupStream, GroupTalker, Talker, TalkerConfig, TalkerGroup, TalkerStats,
39};