devela::_dep::symphonia::core::conv

Trait IntoSample

pub trait IntoSample<T> {
    // Required method
    fn into_sample(self) -> T;
}
Available on crate feature dep_symphonia only.
Expand description

IntoSample implements a conversion from Self to Sample type T.

This may be a lossy conversion if converting from a sample type of higher precision to one of lower precision. No dithering is applied.

Required Methods§

fn into_sample(self) -> T

Implementors§

§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,