pub struct Audition {
pub samples: Vec<f32>,
pub sample_rate: f64,
}Expand description
A playback-ready audition buffer.
f32 because that is the only form a stored render is ever consumed
in — every consumer in the tree converts at the boundary for WebAudio
(auracle_wasm’s render_of / edit_render). Storing it converted
halves resident audio and removes a per-request conversion pass.
One-way door, stated explicitly: features are never derived from an
Audition. crate::featurize measures on the f64 RenderedPhrase
and always will; anything that wants φ from a term must featurize it, not
analyze its audition buffer.
Fields§
§samples: Vec<f32>Mono samples, nominal ±1.0 full scale, loudness-normalized.
sample_rate: f64Sample rate in Hz.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Audition
impl RefUnwindSafe for Audition
impl Send for Audition
impl Sync for Audition
impl Unpin for Audition
impl UnsafeUnpin for Audition
impl UnwindSafe for Audition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more