Repository Public
1//! ORIX Sonata2//! File: crates/sonata-render/src/lib.rs3//! Description: Offline rendering and audio file writers (WAV, AIFF, FLAC), stems, dither.4//!5//! Author: Simon-Pierre Boucher6//! Contact: contact@spboucher.ai7//!8//! Rendering drives the real-time `Processor` of sonata-runtime chunk by chunk, so an offline9//! render and live playback produce the same samples. Nothing here changes levels implicitly:10//! no normalisation unless [`normalize`] is called, dither only when asked and only towards11//! integer PCM, and a file is never replaced unless `FileSpec::overwrite` is set.12#![allow(clippy::needless_range_loop)] // codec and sample loops index parallel arrays1314pub mod file;15pub mod flac;16pub mod md5;17pub mod render;1819pub use file::{20 decode_audio, encode_audio, read_audio_file, to_pcm, write_atomic, write_audio_file, AudioData, Dither, FileFormat, FileSpec, ReadInfo, ReadLimits,21 SampleFormat, WriteReport,22};23pub use render::{measure_levels, normalize, render, render_with, Levels, Normalize, RenderError, RenderOptions, RenderOutput, RenderStats, Stem, Tail};24