Probe and evidence¶
CARGO_BUILD_JOBS=2 cargo run -p ravet-device-probe --locked -- --list
CARGO_BUILD_JOBS=2 cargo run -p ravet-device-probe --locked -- --validate-silence
# Select an enumerated device explicitly:
CARGO_BUILD_JOBS=2 cargo run -p ravet-device-probe --locked -- --validate-silence device-id
The probe opens the selected device's default f32 output configuration for one second and produces silence on every channel. A non-f32 default configuration returns an error. It fails if no callbacks/frames occur or any fault/error/panic is reported. This does not test audible output, input, round-trip latency or callback deadlines. Work status records the exact tested setup.
ravet-standalone-probe drives and observes a separate standalone application
for named-device evidence, without modifying the application:
cargo run -p ravet-standalone-probe --locked -- list # audio outputs, MIDI ports
cargo run -p ravet-standalone-probe --locked -- notes <midi-out-id>
cargo run -p ravet-standalone-probe --locked -- capture <audio-out-id|default> 6 out.wav
cargo run -p ravet-standalone-probe --locked -- capture-notes <audio-out-id|default> <midi-out-id> out.wav
cargo run -p ravet-standalone-probe --locked -- analyse out.wav # RMS and pitch per 100 ms
notes sends A2 (note 45, 110 Hz) for 1 s, rests 0.7 s, then A3 (note 57,
220 Hz) for 1 s. capture and capture-notes record an output device through a
loopback input stream, which CPAL provides on WASAPI (Windows) only; on
PipeWire, record the application's node with pw-record --target instead.
analyse reads 32-bit float WAV files from either source. The capture callback
pushes into a preallocated ring and reports CPAL stream notifications on
stderr; it is a test helper, not a real-time product path.
A Windows machine without a MIDI device needs a loopback port that WinMM lists.
Where Windows MIDI Services is enabled (midisrv running and Drivers32
midi1 set to wdmaud2.drv), its in-box MIDI 2.0 loopback transport provides
one with no installer. Write a configuration file in
%ProgramData%\Microsoft\MIDI with a create entry for the loopback transport
({942BF02D-93C0-4EA8-B03E-D51156CA75E1}, two endpoints with names and one
shared unique identifier; see Default.midiconfig.json in
github.com/microsoft/MIDI), set HKLM\SOFTWARE\Microsoft\Windows MIDI
Services\CurrentConfig to the file name, and restart midisrv. WinMM then
lists both endpoints as inputs and outputs; data sent to one side arrives at
the other. Removing the file and value and restarting the service removes the
pair. The Windows MIDI receipt
records the exact configuration used.
Offline tests check interleaving, partition/time continuity, fault silencing,
malformed frames, preparation bounds, panic disable/silencing and 1,000
allocation-free callbacks. Callback counts include disabled callbacks; frame
counts describe completed DSP sub-blocks, not hardware clock time.