Expand description
The audio side of listen-along, safe on the audio thread: a wrapper around the engine’s render callback that copies the master out into a ring (the tap, read by the network side to stream it) and adds samples from another ring (the mix, filled by a subscription to someone else’s master out). No locks and no allocation in the callback.
Structs§
- Ends
- The network side’s ends of the rings.
- Shared
- Counters and switches shared by the audio thread and the network side.
Enums§
- Input
- What the network side tells the stream input.
Constants§
- PREBUFFER_
MS - How much arrives before the mix starts playing, and again after it ran dry.
- SLOTS
- Slots for collaborators’ inputs.
Functions§
- wrap
- Wrap
renderforsample_rateandchannels. The rings hold two seconds each.
Type Aliases§
- Render
- The engine’s render callback: fills an interleaved block.