Struct synthizer::GlobalEcho
source · pub struct GlobalEcho(_);
Implementations§
source§impl GlobalEcho
impl GlobalEcho
pub fn new(context: &Context) -> Result<GlobalEcho>
sourcepub fn set_taps(&self, taps: &[EchoTapConfig]) -> Result<()>
pub fn set_taps(&self, taps: &[EchoTapConfig]) -> Result<()>
An empty slice clears the taps. Alternatively, you can use clear_taps
.
pub fn clear_taps(&self) -> Result<()>
pub fn gain(&self) -> DoubleProperty<'_>
pub fn get_filter_input(&self) -> Result<BiquadConfig>
pub fn set_filter_input(&self, cfg: &BiquadConfig) -> Result<()>
pub fn handle(&self) -> &Handle
pub fn into_handle(self) -> Handle
pub fn get_type(&self) -> Result<ObjectType>
sourcepub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
pub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
Try to cast this object to another object type. Will return
Ok(None)
if this is because of a type mismatch, otherwise Err
.
Clones self
on success in order to prevent throwing the object
away on error.
pub fn get_userdata(&self) -> Result<Option<Arc<dyn Any + Send + Sync>>>
pub fn set_userdata( &self, userdata: Option<impl Any + Send + Sync> ) -> Result<()>
pub fn config_delete_behavior(&self, config: &DeleteBehaviorConfig) -> Result<()>
pub fn current_time(&self) -> DoubleProperty<'_>
pub fn suggested_automation_time(&self) -> DoubleProperty<'_>
Trait Implementations§
source§impl Clone for GlobalEcho
impl Clone for GlobalEcho
source§fn clone(&self) -> GlobalEcho
fn clone(&self) -> GlobalEcho
Returns a copy 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 GlobalEcho
impl Debug for GlobalEcho
source§impl Hash for GlobalEcho
impl Hash for GlobalEcho
source§impl Ord for GlobalEcho
impl Ord for GlobalEcho
source§fn cmp(&self, other: &GlobalEcho) -> Ordering
fn cmp(&self, other: &GlobalEcho) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<GlobalEcho> for GlobalEcho
impl PartialEq<GlobalEcho> for GlobalEcho
source§fn eq(&self, other: &GlobalEcho) -> bool
fn eq(&self, other: &GlobalEcho) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<GlobalEcho> for GlobalEcho
impl PartialOrd<GlobalEcho> for GlobalEcho
source§fn partial_cmp(&self, other: &GlobalEcho) -> Option<Ordering>
fn partial_cmp(&self, other: &GlobalEcho) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more