[−][src]Struct miniaudio::ChannelConverterConfig
Configuration for ChannelConverter
.
Methods
impl ChannelConverterConfig
[src]
pub fn new(
format: Format,
channel_map_in: &[Channel],
channel_map_out: &[Channel],
mixing_mode: ChannelMixMode
) -> ChannelConverterConfig
[src]
format: Format,
channel_map_in: &[Channel],
channel_map_out: &[Channel],
mixing_mode: ChannelMixMode
) -> ChannelConverterConfig
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]
&mut self,
channel_in_index: usize,
channel_out_index: usize,
weight: f32
)
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
impl RefUnwindSafe for ChannelConverterConfig
impl Send for ChannelConverterConfig
impl Sync for ChannelConverterConfig
impl Unpin for ChannelConverterConfig
impl UnwindSafe for ChannelConverterConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,