[][src]Struct miniaudio::DataConverter

#[repr(transparent)]pub struct DataConverter(_);

Methods

impl DataConverter[src]

pub fn new(config: &DataConverterConfig) -> Result<DataConverter, Error>[src]

pub fn process_pcm_frames(
    &mut self,
    output: &mut FramesMut,
    input: &Frames
) -> Result<(u64, u64), Error>
[src]

pub fn set_rate(
    &mut self,
    sample_rate_in: u32,
    sample_rate_out: u32
) -> Result<(), Error>
[src]

pub fn set_rate_ratio(&mut self, ratio_in_out: f32) -> Result<(), Error>[src]

pub fn required_input_frame_count(&self, output_frame_count: u64) -> u64[src]

pub fn expected_output_frame_count(&self, input_frame_count: u64) -> u64[src]

pub fn input_latency(&self) -> u64[src]

pub fn output_latency(&self) -> u64[src]

Trait Implementations

impl Drop for DataConverter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.