Skip to main content

Crate sim_lib_sound_render

Crate sim_lib_sound_render 

Source
Expand description

Sound rendering for the SIM music constellation.

This crate turns synthesized Tones into interleaved PCM audio. PcmRenderer renders single tones and mixes scheduled tones with per-tone timing and panning, and encodes the result as 16-bit WAV; RendererOptions configures the sample rate and channel count.

Structs§

PcmRenderer
A renderer that synthesizes tones into interleaved PCM f32 samples and encodes them as WAV.
RendererOptions
Configuration for a PcmRenderer.
SoundRenderLib
Host-registered lib exporting the PCM renderer card.

Enums§

SoundRenderError
Error raised by sound rendering and WAV encoding.

Functions§

install_sound_render_lib
Installs the sound-render lib into cx, registering the PCM renderer export record (idempotent).