pub struct AudioSample {
pub value: f32,
}Fields§
§value: f32Implementations§
Source§impl AudioSample
impl AudioSample
Sourcepub fn parse_samples(bytes: &[u8]) -> Vec<AudioSample>
pub fn parse_samples(bytes: &[u8]) -> Vec<AudioSample>
Parses a vector of bytes into a vector of AudioSamples
Trait Implementations§
Source§impl Parsable<AudioSample> for AudioSample
impl Parsable<AudioSample> for AudioSample
Source§fn from_bytes(bytes: &[u8]) -> AudioSample
fn from_bytes(bytes: &[u8]) -> AudioSample
Parses a new AudioSample using the provided byte data Will ignore any bytes after the ones needed (4)
Auto Trait Implementations§
impl Freeze for AudioSample
impl RefUnwindSafe for AudioSample
impl Send for AudioSample
impl Sync for AudioSample
impl Unpin for AudioSample
impl UnwindSafe for AudioSample
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