weirdnet-audio-record 0.3.0

Recording for Weirdnet audio: stems, device outputs and a mix from streams, latency records, take manifests with per-source offsets, gap handling, alignment and re-alignment on export.
Documentation
//! Recording for Weirdnet audio: stems, device outputs and a mix, with latency records and
//! take manifests.
//!
//! * A [`StemRecorder`] places incoming audio by position on the session clock, fills gaps
//!   with silence and notes them, and ignores audio that arrives twice.
//! * A [`Take`] holds the stems of one recording with a [`Manifest`]: per source its kind
//!   (stem, device output, mix), where it starts, its latency record, the offset computed from
//!   it and a manual trim.
//! * [`Take::aligned`] cuts every source to the take's range, shifted by its offset, so all
//!   sources have equal length; [`mix`] sums them. Changing a trim and exporting again
//!   re-aligns.
//! * [`estimate_offset`] finds the lag between a reference and a delayed copy, for measuring
//!   latency from a test signal.
//! * [`wav`] writes and reads 32-bit float WAV; [`Take::write`] writes stems, the mix and
//!   `manifest.json` to a folder.
#![forbid(unsafe_code)]

mod align;
mod stem;
mod take;
pub mod wav;

pub use align::{estimate_offset, mix};
pub use stem::{Gap, Stem, StemRecorder};
pub use take::{Manifest, RecordError, SourceEntry, SourceKind, Take};
pub use weirdnet_audio_route::{LatencyQuality, PortLatency as LatencyRecord};