Struct synthizer::DirectSource
source · [−]pub struct DirectSource(_);Implementations
sourceimpl DirectSource
impl DirectSource
pub fn new(context: &Context) -> Result<DirectSource>
pub fn gain(&self) -> DoubleProperty<'_>
pub fn get_filter(&self) -> Result<BiquadConfig>
pub fn set_filter(&self, cfg: &BiquadConfig) -> Result<()>
pub fn get_filter_direct(&self) -> Result<BiquadConfig>
pub fn set_filter_direct(&self, cfg: &BiquadConfig) -> Result<()>
pub fn get_filter_effects(&self) -> Result<BiquadConfig>
pub fn set_filter_effects(&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<'_>
pub fn pause(&self) -> Result<()>
pub fn play(&self) -> Result<()>
pub fn add_generator<T: IsGenerator>(&self, generator: &T) -> Result<()>
pub fn remove_generator<T: IsGenerator>(&self, generator: &T) -> Result<()>
Trait Implementations
sourceimpl Clone for DirectSource
impl Clone for DirectSource
sourcefn clone(&self) -> DirectSource
fn clone(&self) -> DirectSource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DirectSource
impl Debug for DirectSource
sourceimpl From<&'_ DirectSource> for Source
impl From<&'_ DirectSource> for Source
sourcefn from(other: &DirectSource) -> Source
fn from(other: &DirectSource) -> Source
Converts to this type from the input type.
sourceimpl From<&'_ DirectSource> for Handle
impl From<&'_ DirectSource> for Handle
sourcefn from(other: &DirectSource) -> Handle
fn from(other: &DirectSource) -> Handle
Converts to this type from the input type.
sourceimpl From<DirectSource> for Source
impl From<DirectSource> for Source
sourcefn from(input: DirectSource) -> Source
fn from(input: DirectSource) -> Source
Converts to this type from the input type.
sourceimpl From<DirectSource> for Handle
impl From<DirectSource> for Handle
sourcefn from(input: DirectSource) -> Handle
fn from(input: DirectSource) -> Handle
Converts to this type from the input type.
sourceimpl Hash for DirectSource
impl Hash for DirectSource
sourceimpl Ord for DirectSource
impl Ord for DirectSource
sourceimpl PartialEq<DirectSource> for DirectSource
impl PartialEq<DirectSource> for DirectSource
sourcefn eq(&self, other: &DirectSource) -> bool
fn eq(&self, other: &DirectSource) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DirectSource) -> bool
fn ne(&self, other: &DirectSource) -> bool
This method tests for !=.
sourceimpl PartialOrd<DirectSource> for DirectSource
impl PartialOrd<DirectSource> for DirectSource
sourcefn partial_cmp(&self, other: &DirectSource) -> Option<Ordering>
fn partial_cmp(&self, other: &DirectSource) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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
sourceimpl TryFrom<&'_ Handle> for DirectSource
impl TryFrom<&'_ Handle> for DirectSource
sourceimpl TryFrom<&'_ Source> for DirectSource
impl TryFrom<&'_ Source> for DirectSource
sourceimpl TryFrom<Handle> for DirectSource
impl TryFrom<Handle> for DirectSource
sourceimpl TryFrom<Source> for DirectSource
impl TryFrom<Source> for DirectSource
impl Eq for DirectSource
impl StructuralEq for DirectSource
impl StructuralPartialEq for DirectSource
Auto Trait Implementations
impl RefUnwindSafe for DirectSource
impl Send for DirectSource
impl Sync for DirectSource
impl Unpin for DirectSource
impl UnwindSafe for DirectSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more