pub struct AudioOutputData_ { /* private fields */ }Implementations§
Source§impl AudioOutputData_
impl AudioOutputData_
pub fn new( input_sample_rate: usize, output_sample_rate: usize, ) -> Result<Self, Error>
pub fn total_samples(&self) -> usize
pub fn samples_in_buffer(&self) -> usize
pub fn reset(&mut self)
pub fn take_all(&mut self) -> Vec<f32>
pub fn db10(&self) -> f32
pub fn clear(&mut self)
pub fn is_empty(&self) -> bool
pub fn push_sub(&mut self, sub: String)
pub fn push_samples(&mut self, samples: &[f32]) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for AudioOutputData_
impl RefUnwindSafe for AudioOutputData_
impl Send for AudioOutputData_
impl Sync for AudioOutputData_
impl Unpin for AudioOutputData_
impl UnwindSafe for AudioOutputData_
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