pub enum ResampleQuality {
Low,
Normal,
}
Expand description
The quality of the resampling algorithm to use.
Variants§
Low
Low quality, fast performance
More specifically, this uses the [FastFixedIn
] resampler from
rubato with an interpolation type of [PolynomialDegree::Linear
]
and a chunk size of 1024
.
Normal
Great quality, medium performance
This is recommended for most applications.
More specifically, if the fft-resampler
feature is enabled (which
it is by default), then this uses the [FftFixedIn
] resampler from
rubato with a chunk size of 1024
and 2 sub chunks.
If the fft-resampler
feature is not enabled, then this will fall
back to the Low
quality.
Trait Implementations§
Source§impl Clone for ResampleQuality
impl Clone for ResampleQuality
Source§fn clone(&self) -> ResampleQuality
fn clone(&self) -> ResampleQuality
Returns a copy of the value. Read more
1.0.0 · 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 ResampleQuality
impl Debug for ResampleQuality
Source§impl Default for ResampleQuality
impl Default for ResampleQuality
Source§fn default() -> ResampleQuality
fn default() -> ResampleQuality
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResampleQuality
impl PartialEq for ResampleQuality
impl Copy for ResampleQuality
impl Eq for ResampleQuality
impl StructuralPartialEq for ResampleQuality
Auto Trait Implementations§
impl Freeze for ResampleQuality
impl RefUnwindSafe for ResampleQuality
impl Send for ResampleQuality
impl Sync for ResampleQuality
impl Unpin for ResampleQuality
impl UnwindSafe for ResampleQuality
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