Skip to main content

sim_lib_sound_render/
lib.rs

1//! Sound rendering for the SIM music constellation.
2//!
3//! This crate turns synthesized [`Tone`](sim_lib_sound_core::Tone)s into
4//! interleaved PCM audio. [`PcmRenderer`] renders single tones and mixes
5//! scheduled tones with per-tone timing and panning, and encodes the result as
6//! 16-bit WAV; [`RendererOptions`] configures the sample rate and channel
7//! count.
8#![forbid(unsafe_code)]
9#![deny(missing_docs)]
10
11mod error;
12mod model;
13mod runtime;
14
15pub use error::*;
16pub use model::*;
17pub use runtime::*;
18
19/// Cookbook recipes for this lib, embedded at build time.
20pub static RECIPES: sim_cookbook::EmbeddedDir =
21    include!(concat!(env!("OUT_DIR"), "/cookbook_recipes.rs"));
22
23#[cfg(test)]
24mod tests;