Prepared UMP device handoff¶
PreparedUmpInput::new(1..4096) returns unique producer/UmpReceiver endpoints.
Each TimedUmp retains a framed packet, explicit UmpProtocol and opaque u64
timestamp. Native producers define the clock domain; these timestamps do not
inherit the MIDI 1.0 connection-local microsecond meaning. There is no conversion
of numeric words, protocol semantics, timestamp origin or audio sample offsets.
push_words validates up to 4096 words at a known boundary before publishing
anything. Malformed/oversized whole batches publish nothing; an empty batch is
valid. On full/abandoned queues the accepted prefix remains, the suffix is
reported discarded and is not replayed. One timestamp/protocol label applies to
all packets in that batch. try_push publishes one caller-owned Copy record.
Relaxed/wrapping statistics count accepted packets, full-refused packets and
invalid batches; publication does not guarantee consumption if abandonment races.
Already-queued data remains drainable after producer loss.
Construction/drop belong to control threads. Push/pop use no framework heap, locks or I/O; native callbacks must serialize the unique producer. Tests preserve all framed types and exact words/timestamps/protocol labels, reject malformed whole batches, exercise overflow/abandonment and 10,000 prepared and separate- thread workloads. Native UMP connections and clock/negotiation policy are separate. See decision 0060.
The separate CoreMIDI UMP backend now supplies protocol-selected macOS inputs, exact-ID outputs and owned virtual destinations through this queue. Its synthetic native test preserves MIDI 1/2 words across all groups; physical UMP devices and negotiated protocol/clock integration remain unvalidated.