pub struct ChorusEffect { /* private fields */ }Expand description
Stereo chorus effect with an filtered, interpolated delay-line.
Implementations§
Source§impl ChorusEffect
impl ChorusEffect
pub const EFFECT_NAME: &str = "Chorus"
pub const RATE: FloatParameter
pub const PHASE: FloatParameter
pub const DEPTH: FloatParameter
pub const FEEDBACK: FloatParameter
pub const DELAY: FloatParameter
pub const WET_MIX: FloatParameter
pub const FILTER_TYPE: EnumParameter
pub const FILTER_FREQ: FloatParameter
pub const FILTER_RESONANCE: FloatParameter
Trait Implementations§
Source§impl Default for ChorusEffect
impl Default for ChorusEffect
Source§impl Effect for ChorusEffect
impl Effect for ChorusEffect
Source§fn weight(&self) -> usize
fn weight(&self) -> usize
Return a rough estimate of the processing costs for this effect in range
~1..10,
where 1 means pretty lightweight and 10 very CPU intensive. This is used in parallel
processing to distribute work loads evenly before or without actual CPU measurements.Source§fn parameters(&self) -> Vec<&dyn Parameter>
fn parameters(&self) -> Vec<&dyn Parameter>
Returns a list of parameter descriptors for this effect. Read more
Source§fn initialize(
&mut self,
sample_rate: u32,
channel_count: usize,
_max_frames: usize,
) -> Result<(), Error>
fn initialize( &mut self, sample_rate: u32, channel_count: usize, _max_frames: usize, ) -> Result<(), Error>
Initializes the effect with the audio output’s properties. Read more
Source§fn process(&mut self, output: &mut [f32], _time: &EffectTime)
fn process(&mut self, output: &mut [f32], _time: &EffectTime)
Processes an audio buffer in-place, applying the effect. Read more
Source§fn process_tail(&self) -> Option<usize>
fn process_tail(&self) -> Option<usize>
Returns the number of audible sample frames this effect will produce, after it received
silence. Read more
Source§fn process_message(
&mut self,
message: &EffectMessagePayload,
) -> Result<(), Error>
fn process_message( &mut self, message: &EffectMessagePayload, ) -> Result<(), Error>
Handles optional effect-specific messages in the real-time thread. This can be used to pass
payloads to the effects, which can or should not be expressed as a trivial parameter change. Read more
Source§fn process_parameter_update(
&mut self,
id: FourCC,
value: &ParameterValueUpdate,
) -> Result<(), Error>
fn process_parameter_update( &mut self, id: FourCC, value: &ParameterValueUpdate, ) -> Result<(), Error>
Handles a parameter update in the real-time thread. Read more
Source§fn into_box(self) -> Box<dyn Effect>where
Self: Sized,
fn into_box(self) -> Box<dyn Effect>where
Self: Sized,
Convert the Effect impl into a boxed
dyn Effect. Read moreSource§fn process_started(&mut self)
fn process_started(&mut self)
Called in the real-time thread before audio processing starts. Read more
Source§fn process_stopped(&mut self)
fn process_stopped(&mut self)
Called in the real-time thread after processing stopped. Read more
Source§fn process_parameter_updates(
&mut self,
values: &[(FourCC, ParameterValueUpdate)],
) -> Result<(), Error>
fn process_parameter_updates( &mut self, values: &[(FourCC, ParameterValueUpdate)], ) -> Result<(), Error>
Handles multiple parameter updates in a batch in the real-time thread. Read more
Auto Trait Implementations§
impl Freeze for ChorusEffect
impl RefUnwindSafe for ChorusEffect
impl Send for ChorusEffect
impl Sync for ChorusEffect
impl Unpin for ChorusEffect
impl UnsafeUnpin for ChorusEffect
impl UnwindSafe for ChorusEffect
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