pub struct ResamplerConfig {
pub quality: ResampleQuality,
pub chunk_size: usize,
pub sub_chunks: usize,
}Expand description
The configuration for a PacketResampler or a Resampler create with
resampler_from_quality.
Fields§
§quality: ResampleQualityThe quality of the resampling algorithm.
By default this is set to ResampleQuality::High.
chunk_size: usizeThe chunk size of the resampler. Lower values may reduce latency, but may use more CPU.
By default this is set to 512.
sub_chunks: usizeThe number of sub-chunks to use. Higher values may reduce latency, but also may increase CPU usage.
See rubato::Fft::new for more information one what sub_chunks does.
This only has an effect when using the
ResampleQuality::High option with the fft-resampler feature enabled.
By default this is set to 1.
Trait Implementations§
Source§impl Clone for ResamplerConfig
impl Clone for ResamplerConfig
Source§fn clone(&self) -> ResamplerConfig
fn clone(&self) -> ResamplerConfig
Returns a duplicate 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 ResamplerConfig
impl Debug for ResamplerConfig
Source§impl Default for ResamplerConfig
impl Default for ResamplerConfig
Source§impl PartialEq for ResamplerConfig
impl PartialEq for ResamplerConfig
impl Copy for ResamplerConfig
impl Eq for ResamplerConfig
impl StructuralPartialEq for ResamplerConfig
Auto Trait Implementations§
impl Freeze for ResamplerConfig
impl RefUnwindSafe for ResamplerConfig
impl Send for ResamplerConfig
impl Sync for ResamplerConfig
impl Unpin for ResamplerConfig
impl UnsafeUnpin for ResamplerConfig
impl UnwindSafe for ResamplerConfig
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