Struct web_audio_api::node::ChannelConfig
source · [−]pub struct ChannelConfig { /* private fields */ }
Expand description
Config for up/down-mixing of channels for audio nodes
Implementations
sourceimpl ChannelConfig
impl ChannelConfig
sourcepub fn count_mode(&self) -> ChannelCountMode
pub fn count_mode(&self) -> ChannelCountMode
Represents an enumerated value describing the way channels must be matched between the node’s inputs and outputs.
pub fn set_count_mode(&self, v: ChannelCountMode)
sourcepub fn interpretation(&self) -> ChannelInterpretation
pub fn interpretation(&self) -> ChannelInterpretation
Represents an enumerated value describing the meaning of the channels. This interpretation will define how audio up-mixing and down-mixing will happen.
pub fn set_interpretation(&self, v: ChannelInterpretation)
sourcepub fn count(&self) -> usize
pub fn count(&self) -> usize
Represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node.
pub fn set_count(&self, v: usize)
Trait Implementations
sourceimpl Clone for ChannelConfig
impl Clone for ChannelConfig
sourcefn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
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 ChannelConfig
impl Debug for ChannelConfig
sourceimpl From<ChannelConfigOptions> for ChannelConfig
impl From<ChannelConfigOptions> for ChannelConfig
sourcefn from(opts: ChannelConfigOptions) -> Self
fn from(opts: ChannelConfigOptions) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnwindSafe for ChannelConfig
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
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
fn into_sample(self) -> T
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more