pub struct Eq5Effect { /* private fields */ }Expand description
Multi-channel 5-band parametric equalizer.
First band is using a low-shelf filter, last band a high shelf filter, the other bands are notch filters with configurable band width.
Implementations§
Source§impl Eq5Effect
impl Eq5Effect
pub const EFFECT_NAME: &str = "Eq5"
pub const GAINS: [FloatParameter; 5]
pub const FREQUENCIES: [FloatParameter; 5]
pub const BANDWIDTHS: [FloatParameter; 5]
Trait Implementations§
Source§impl Effect for Eq5Effect
impl Effect for Eq5Effect
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_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
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
Auto Trait Implementations§
impl Freeze for Eq5Effect
impl RefUnwindSafe for Eq5Effect
impl Send for Eq5Effect
impl Sync for Eq5Effect
impl Unpin for Eq5Effect
impl UnsafeUnpin for Eq5Effect
impl UnwindSafe for Eq5Effect
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