Struct bevy_retrograde::audio::kira::mixer::effect::filter::FilterSettings [−]
pub struct FilterSettings { pub mode: FilterMode, pub cutoff: Value<f64>, pub resonance: Value<f64>, }
Expand description
Settings for a Filter
.
Fields
mode: FilterMode
The frequencies that the filter will remove.
cutoff: Value<f64>
The cutoff frequency of the filter (in hertz).
resonance: Value<f64>
The resonance of the filter.
The resonance is a feedback effect that produces a distinctive “ringing” sound.
Implementations
impl FilterSettings
impl FilterSettings
pub fn new() -> FilterSettings
pub fn new() -> FilterSettings
Creates a new FilterSettings
with the default settings.
pub fn mode(self, mode: FilterMode) -> FilterSettings
pub fn mode(self, mode: FilterMode) -> FilterSettings
Sets the frequencies that the filter will remove.
pub fn cutoff<V>(self, cutoff: V) -> FilterSettings where
V: Into<Value<f64>>,
pub fn cutoff<V>(self, cutoff: V) -> FilterSettings where
V: Into<Value<f64>>,
Sets the cutoff frequency of the filter (in hertz).
pub fn resonance<V>(self, resonance: V) -> FilterSettings where
V: Into<Value<f64>>,
pub fn resonance<V>(self, resonance: V) -> FilterSettings where
V: Into<Value<f64>>,
Sets the resonance of the filter.
Trait Implementations
impl Clone for FilterSettings
impl Clone for FilterSettings
pub fn clone(&self) -> FilterSettings
pub fn clone(&self) -> FilterSettings
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for FilterSettings
impl Debug for FilterSettings
impl Default for FilterSettings
impl Default for FilterSettings
pub fn default() -> FilterSettings
pub fn default() -> FilterSettings
Returns the “default value” for a type. Read more
impl Copy for FilterSettings
Auto Trait Implementations
impl RefUnwindSafe for FilterSettings
impl Send for FilterSettings
impl Sync for FilterSettings
impl Unpin for FilterSettings
impl UnwindSafe for FilterSettings
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: 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
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub 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. Read more
impl<T> FromWorld for T where
T: Default,
impl<T> FromWorld for T where
T: Default,
pub fn from_world(_world: &mut World) -> T
pub fn from_world(_world: &mut World) -> T
Creates Self
using data from the given [World]
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V