Skip to main content

Module packet

Module packet 

Source
Expand description

Packet payloads carried by stream envelopes.

StreamPacket is the umbrella over the concrete payload kinds an envelope can hold: PcmPacket audio frames, MidiPacket events, StreamDiagnostic messages, and opaque DataPacket values. Each payload round-trips to and from a self-describing Expr map tagged with a stream/packet/* symbol, so packets can be serialized, interned as kernel data (StreamPacket::intern_ref), and reconstructed.

The kernel defines the Expr/Datum/datum-store contract; this module supplies the concrete streaming-fabric payload model on top of it.

Structs§

DataPacket
An opaque structured payload: a kind-tagged arbitrary Expr value.
MidiPacket
A MIDI payload: an ordered run of MidiPacketEvents sharing one TPQ resolution.
MidiPacketEvent
A single timed MIDI event within a MidiPacket.
PcmPacket
A block of interleaved PCM audio samples.
StreamDiagnostic
A diagnostic payload: a categorized human-readable message carried in-band on a stream.

Enums§

PcmSampleFormat
Sample encoding of a PcmPacket.
StreamPacket
Umbrella over every payload kind a stream envelope can carry.