pub struct ResamplerConfig {
pub quality: ResampleQuality,
pub chunk_size: 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.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResamplerConfig
Source§impl Debug for ResamplerConfig
impl Debug for ResamplerConfig
Source§impl Default for ResamplerConfig
impl Default for ResamplerConfig
impl Eq for ResamplerConfig
Source§impl PartialEq for ResamplerConfig
impl PartialEq 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