Skip to main content

Module engine

Module engine 

Source
Expand description

cpal output stream wiring.

8 pre-allocated track slots. Audio callback pulls stereo samples from a FunDSP Net built once from all 8. Dormant slots are simply muted — no reallocation, no graph hot-swap. Sample ring buffer captures output for the TUI oscilloscope (producer-side only lock).

Structs§

AudioEngine
EngineHandle
Handle the TUI keeps alive for the lifetime of the app.

Constants§

MAX_TRACKS
Max tracks pre-allocated. Raise = more CPU, more slots.
SCOPE_CAPACITY
Ring buffer of stereo samples for the oscilloscope (decimated).
SCOPE_DECIMATION
Keep one sample per N audio samples.

Functions§

default_track_set
Default 8-track set: 3 active + 5 dormant, rooted on golden-ratio frequencies.

Type Aliases§

ScopeBuffer
SharedGraph