pub struct DistortionEffect {
pub enabled: bool,
pub settings: DistortionSettings,
}Expand description
Configured distortion effect.
Fields§
§enabled: bool§settings: DistortionSettingsImplementations§
Source§impl DistortionEffect
impl DistortionEffect
Sourcepub fn process(
&mut self,
samples: &[f32],
_context: &EffectContext,
_drain: bool,
) -> Vec<f32>
pub fn process( &mut self, samples: &[f32], _context: &EffectContext, _drain: bool, ) -> Vec<f32>
Sourcepub fn reset_state(&mut self)
pub fn reset_state(&mut self)
Reset any internal state (none for distortion).
Trait Implementations§
Source§impl Clone for DistortionEffect
impl Clone for DistortionEffect
Source§fn clone(&self) -> DistortionEffect
fn clone(&self) -> DistortionEffect
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 DistortionEffect
impl Debug for DistortionEffect
Source§impl Default for DistortionEffect
impl Default for DistortionEffect
Source§impl<'de> Deserialize<'de> for DistortionEffectwhere
DistortionEffect: Default,
impl<'de> Deserialize<'de> for DistortionEffectwhere
DistortionEffect: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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