Files
betterxen/experiments/audio-dsp/API-COVERAGE.md
T
elforeign de71515d76 experiments: isolated audio DSP prototype with a bounded PCM mixer and opt-in CoreAudio output
A standalone crate under experiments/audio-dsp (its own workspace, with Xenora
integration behind the optional 'xenora' feature). It is not wired into the
runtime. Tests use hand-derived sample values; the default test run opens no
audio device. Native playback runs only via 'examples/measure.rs --play'.

Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
2026-11-24 08:46:02 -06:00

1.8 KiB

Audio API coverage

Proprietary Xbox audio DSP APIs are unsupported; this experiment defines only its own fixture services below.

Original Xenora fixture services

These Win64 calls are defined only for this experiment under xenora_audio_fixture.dll. The host registers them for a single DSP session and provides a stream handle to trusted synthetic guest code.

Import Arguments
SubmitPcm RCX stream handle, RDX guest PCM address, R8 byte length, R9D encoding (1 for S16LE, 2 for F32LE)
ScheduleStart RCX stream handle, RDX absolute DSP output-frame clock position

The result in RAX is 0 for accepted, 1 for an invalid handle, 2 for invalid input, 3 for exhausted capacity or 4 for session failure. An invalid guest memory range raises Xenora's checked memory fault. PCM must use complete frames, be appropriately aligned and fit the configured transfer limit. Acceptance places a command into the FIFO and does not report completed playback.

Public references