Skip to main content

Module audio

Module audio 

Source
Expand description

Audio runtime: a 4-channel chip-tune synthesizer.

The synth core is pure (samples in, samples out) so it can be tested headless; AudioOutput hooks it to a real device via cpal when the audio feature is enabled and an output device exists. On machines with no audio device Pixel8 stays silent but fully functional.

Structs§

AudioHandle
Clonable handle the VM and editors use to poke the synth.
AudioOutput
Real audio output via cpal. Owns the stream; dropping it stops audio.
Synth
The synthesizer: voices, sequencer and a copy of the cart’s audio data.