[][src]Struct miniaudio::ChannelConverterConfig

#[repr(transparent)]pub struct ChannelConverterConfig(_);

Configuration for ChannelConverter.

Implementations

impl ChannelConverterConfig[src]

pub fn new(
    format: Format,
    channel_map_in: &[Channel],
    channel_map_out: &[Channel],
    mixing_mode: ChannelMixMode
) -> ChannelConverterConfig
[src]

pub fn format(&self) -> Format[src]

pub fn channels_in(&self) -> u32[src]

pub fn channels_out(&self) -> u32[src]

pub fn channel_map_in(&self) -> &[Channel][src]

pub fn channel_map_out(&self) -> &[Channel][src]

pub fn mixing_mode(&self) -> ChannelMixMode[src]

pub fn weight(&self, channel_in_index: usize, channel_out_index: usize) -> f32[src]

Returns the weight for an in/out channel mapping.

These weights are only used when mixing mode is set to ChannelMixMode::CustomWeights.

pub fn set_weight(
    &mut self,
    channel_in_index: usize,
    channel_out_index: usize,
    weight: f32
)
[src]

Set the weight for an in/out channel mapping.

These weights are only used when mixing mode is set to ChannelMixMode::CustomWeights.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.