pub struct RawChannelDataBlock {
pub multiplier: f64,
pub samples: Vec<i16>,
}
Expand description
A struct containing raw channel data and scaling factors to get scaled samples
Fields§
§multiplier: f64
§samples: Vec<i16>
Implementations§
Source§impl RawChannelDataBlock
impl RawChannelDataBlock
pub fn scale_samples(&self) -> Vec<f64>
pub fn scale_sample(&self, index: usize) -> f64
Trait Implementations§
Source§impl Clone for RawChannelDataBlock
impl Clone for RawChannelDataBlock
Source§fn clone(&self) -> RawChannelDataBlock
fn clone(&self) -> RawChannelDataBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 RawChannelDataBlock
impl RefUnwindSafe for RawChannelDataBlock
impl Send for RawChannelDataBlock
impl Sync for RawChannelDataBlock
impl Unpin for RawChannelDataBlock
impl UnwindSafe for RawChannelDataBlock
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