pub enum ResamplerQuality {
Fast,
Normal,
Good,
High,
Maximum,
}Expand description
Quality preset for the audio resampler.
Controls the resampling algorithm and interpolation parameters. Higher quality uses more CPU but produces better audio fidelity.
Variants§
Fast
Fastest resampling using polynomial interpolation. Suitable for previews or low-power devices.
Normal
Balanced sinc resampling (64-tap, linear interpolation).
Good
Good sinc resampling (128-tap, linear interpolation).
High
High sinc resampling (256-tap, cubic interpolation). Recommended for music playback.
Maximum
Maximum quality using FFT-based resampling. Highest CPU usage, best for offline processing or high-end playback.
Trait Implementations§
Source§impl Clone for ResamplerQuality
impl Clone for ResamplerQuality
Source§fn clone(&self) -> ResamplerQuality
fn clone(&self) -> ResamplerQuality
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 ResamplerQuality
impl Debug for ResamplerQuality
Source§impl Default for ResamplerQuality
impl Default for ResamplerQuality
Source§fn default() -> ResamplerQuality
fn default() -> ResamplerQuality
Returns the “default value” for a type. Read more
Source§impl From<ResamplerQuality> for SincInterpolationParameters
impl From<ResamplerQuality> for SincInterpolationParameters
Source§fn from(quality: ResamplerQuality) -> Self
fn from(quality: ResamplerQuality) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResamplerQuality
impl PartialEq for ResamplerQuality
Source§fn eq(&self, other: &ResamplerQuality) -> bool
fn eq(&self, other: &ResamplerQuality) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ResamplerQuality
impl Eq for ResamplerQuality
impl StructuralPartialEq for ResamplerQuality
Auto Trait Implementations§
impl Freeze for ResamplerQuality
impl RefUnwindSafe for ResamplerQuality
impl Send for ResamplerQuality
impl Sync for ResamplerQuality
impl Unpin for ResamplerQuality
impl UnsafeUnpin for ResamplerQuality
impl UnwindSafe for ResamplerQuality
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