pub struct ComplexSound { /* private fields */ }Expand description
Implementations§
Source§impl ComplexSound
impl ComplexSound
Sourcepub fn new(input_gain: MathT, output_gain: MathT) -> Self
pub fn new(input_gain: MathT, output_gain: MathT) -> Self
Creates a new ComplexSound object with the given input and output gain
values.
Sourcepub fn get_input_gain(&self) -> GraphNode
pub fn get_input_gain(&self) -> GraphNode
Returns the [‘GraphNode’] containing the input gain Modifier.
Sourcepub fn get_output_gain(&self) -> GraphNode
pub fn get_output_gain(&self) -> GraphNode
Returns the [‘GraphNode’] containing the output gain Modifier.
Sourcepub fn add_connection(&mut self, from: GraphNode, to: GraphNode)
pub fn add_connection(&mut self, from: GraphNode, to: GraphNode)
Adds a new connection (edge) between the two given GraphNodes.
Sourcepub fn remove_connection(&mut self, from: GraphNode, to: GraphNode)
pub fn remove_connection(&mut self, from: GraphNode, to: GraphNode)
Removes a connection between the two given GraphNodes.
Sourcepub fn get_nodes(&self) -> ProcessOrder
pub fn get_nodes(&self) -> ProcessOrder
Returns a copy of the list of all nodes of the graph in the order in which they will be processed.
Trait Implementations§
Source§impl Clone for ComplexSound
impl Clone for ComplexSound
Source§fn clone(&self) -> ComplexSound
fn clone(&self) -> ComplexSound
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 Sound for ComplexSound
impl Sound for ComplexSound
Source§fn toggle_pause(&mut self)
fn toggle_pause(&mut self)
Toggles the pause state of the sound. If the sound is paused, the
internal structures aren’t process during a call to
process, instead
only Default::default() is returned.Source§fn toggle_mute(&mut self)
fn toggle_mute(&mut self)
Toggles the mute state of the sound. If the sound is muted, the internal
structures are still processed during a call to
process, but
Default::default() is returned.Source§fn unregister(&mut self)
fn unregister(&mut self)
Sets itself as unregistered and clears the saved ID. Read more
Auto Trait Implementations§
impl Freeze for ComplexSound
impl !RefUnwindSafe for ComplexSound
impl !Send for ComplexSound
impl !Sync for ComplexSound
impl Unpin for ComplexSound
impl !UnwindSafe for ComplexSound
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)