#[repr(u32)]pub enum Resampler {
Default = 0,
NoInterp = 1,
Linear = 2,
Cubic = 3,
Spline = 4,
}
Expand description
List of interpolation types used for resampling.
Variants§
Default = 0
Default interpolation method, same as Resampler::Linear
.
NoInterp = 1
No interpolation. High frequency aliasing hiss will be audible depending on the sample rate of the sound.
Linear = 2
Linear interpolation (default method). Fast and good quality, causes very slight lowpass effect on low frequency sounds.
Cubic = 3
Cubic interpolation. Slower than linear interpolation but better quality.
Spline = 4
5 point spline interpolation. Slowest resampling method but best quality.
Trait Implementations§
Source§impl TryFromPrimitive for Resampler
impl TryFromPrimitive for Resampler
Source§impl UnsafeFromPrimitive for Resampler
impl UnsafeFromPrimitive for Resampler
type Primitive = u32
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from
, from_unchecked
will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for Resampler
impl Eq for Resampler
impl StructuralPartialEq for Resampler
Auto Trait Implementations§
impl Freeze for Resampler
impl RefUnwindSafe for Resampler
impl Send for Resampler
impl Sync for Resampler
impl Unpin for Resampler
impl UnwindSafe for Resampler
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