Expand description
Stage stream metadata (record-along): what a stream is, and where on the sender’s loop each frame belongs. The stream crate carries both as opaque bytes.
Positions are in ticks of the loop (the app’s own unit), so senders and listeners with different sample rates agree; a
listener turns them into its own frames with Grid.
Structs§
- Grid
- A loop in one side’s frames.
- Loop
Marker - Where a frame’s first sample belongs on the sender’s loop: the sender’s frame within its loop and its loop length, so a listener at any sample rate places it by ratio, exactly when the rates match.
- Stage
Stream Meta - Once per stream, in
StreamInfo::meta.
Enums§
- Stage
Kind - Dry (the sender’s own voices) or a mix (with other people’s audio in it).
Functions§
- frame_
meta - Frame metadata: the send time (8 bytes, microseconds since the Unix epoch), then an optional loop marker (4 + 8 + 8 bytes, little endian).
- marker_
of - The loop marker in a frame’s metadata.
- take_
stream - A dry take as a recorded stream: interleaved f32
sampleswhose first sample belongs atstart_frameon the loop, stamped withmeta(meta.start_tickis set, for people and other apps). 10 ms frames, each with its exact loop marker.