Skip to main content

Module audio

Module audio 

Source
Expand description

Audio I/O backend abstraction.

The real backend uses cpal for hardware audio. The test backend captures output to a Vec<f32> so tests run without a sound card.

Structs§

AudioBuffer
A processed audio buffer returned by the test backend.
TestBackend
In-memory audio backend for testing. No sound card required.

Traits§

AudioBackend
Trait for audio output backends. Allows swapping real hardware for an in-memory test backend.

Type Aliases§

AudioCallback
Audio callback type alias.