pub struct SignalSlab {
pub channels: Vec<Box<[f32]>>,
pub sample_rate: f32,
pub num_frames: usize,
}Expand description
Pre-loaded, deinterleaved signal data ready for playback.
One Box<[f32]> per channel. Created on a control thread from a WAV
file or synthetic source, passed to a sampler via
ParamValue::SignalSlab. Channel-agnostic.
Fields§
§channels: Vec<Box<[f32]>>One boxed slice per channel of deinterleaved sample data.
Extracted via Arc::try_unwrap for zero-copy transfer to sampler.
sample_rate: f32Original sample rate in Hz.
num_frames: usizeNumber of frames (samples per channel).
Trait Implementations§
Source§impl Clone for SignalSlab
impl Clone for SignalSlab
Source§fn clone(&self) -> SignalSlab
fn clone(&self) -> SignalSlab
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SignalSlab
impl RefUnwindSafe for SignalSlab
impl Send for SignalSlab
impl Sync for SignalSlab
impl Unpin for SignalSlab
impl UnsafeUnpin for SignalSlab
impl UnwindSafe for SignalSlab
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