pub struct AudioBuffer { /* private fields */ }Implementations§
Source§impl AudioBuffer
impl AudioBuffer
pub fn silent(sample_rate: u32, channel_count: usize, frames: usize) -> Self
pub fn from_channels(sample_rate: u32, channels: Vec<Vec<f32>>) -> Self
pub fn sample_rate(&self) -> u32
pub fn channel_count(&self) -> usize
pub fn frames(&self) -> usize
pub fn channels(&self) -> &[Vec<f32>]
pub fn channels_mut(&mut self) -> &mut [Vec<f32>]
pub fn interleaved_f32(&self) -> Vec<f32>
Trait Implementations§
Source§impl Clone for AudioBuffer
impl Clone for AudioBuffer
Source§fn clone(&self) -> AudioBuffer
fn clone(&self) -> AudioBuffer
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 moreSource§impl Debug for AudioBuffer
impl Debug for AudioBuffer
Source§impl PartialEq for AudioBuffer
impl PartialEq for AudioBuffer
Source§fn eq(&self, other: &AudioBuffer) -> bool
fn eq(&self, other: &AudioBuffer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AudioBuffer
Auto Trait Implementations§
impl Freeze for AudioBuffer
impl RefUnwindSafe for AudioBuffer
impl Send for AudioBuffer
impl Sync for AudioBuffer
impl Unpin for AudioBuffer
impl UnsafeUnpin for AudioBuffer
impl UnwindSafe for AudioBuffer
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