pub struct DistortionEffect {Show 15 fields
pub mode: DistortionMode,
pub drive: f32,
pub output_gain: f32,
pub mix: f32,
pub tone: f32,
pub tone_filter_l: BiquadState,
pub tone_filter_r: BiquadState,
pub tone_coeff: BiquadCoefficients,
pub is_enabled: bool,
pub poly_coeffs: [f32; 4],
pub bit_depth: f32,
pub sample_rate_factor: f32,
pub srr_counter: usize,
pub srr_held_l: f32,
pub srr_held_r: f32,
}Fields§
§mode: DistortionMode§drive: f32§output_gain: f32§mix: f32§tone: f32§tone_filter_l: BiquadState§tone_filter_r: BiquadState§tone_coeff: BiquadCoefficients§is_enabled: bool§poly_coeffs: [f32; 4]§bit_depth: f32§sample_rate_factor: f32§srr_counter: usize§srr_held_l: f32§srr_held_r: f32Implementations§
Source§impl DistortionEffect
impl DistortionEffect
pub fn new(mode: DistortionMode, drive: f32) -> Self
pub fn process_sample(&mut self, in_l: f32, in_r: f32) -> (f32, f32)
Trait Implementations§
Source§impl Clone for DistortionEffect
impl Clone for DistortionEffect
Auto Trait Implementations§
impl Freeze for DistortionEffect
impl RefUnwindSafe for DistortionEffect
impl Send for DistortionEffect
impl Sync for DistortionEffect
impl Unpin for DistortionEffect
impl UnsafeUnpin for DistortionEffect
impl UnwindSafe for DistortionEffect
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.