pub enum ChannelOutConfig {
Mono = 4,
Stereo = 12,
}Expand description
Audio channel configuration - Output (Player)
Defines channel configurations for audio output (playback), supporting mono and stereo.
§Examples
use android_media::ChannelOutConfig;
let config = ChannelOutConfig::Mono;
assert_eq!(config.value(), 4);
assert_eq!(config.channel_count(), 1);Variants§
Mono = 4
Mono playback - suitable for voice announcements, etc.
Stereo = 12
Stereo playback - suitable for music playback, etc.
Implementations§
Source§impl ChannelOutConfig
impl ChannelOutConfig
Trait Implementations§
Source§impl Clone for ChannelOutConfig
impl Clone for ChannelOutConfig
Source§fn clone(&self) -> ChannelOutConfig
fn clone(&self) -> ChannelOutConfig
Returns a duplicate 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 Debug for ChannelOutConfig
impl Debug for ChannelOutConfig
Source§impl PartialEq for ChannelOutConfig
impl PartialEq for ChannelOutConfig
impl Copy for ChannelOutConfig
impl Eq for ChannelOutConfig
impl StructuralPartialEq for ChannelOutConfig
Auto Trait Implementations§
impl Freeze for ChannelOutConfig
impl RefUnwindSafe for ChannelOutConfig
impl Send for ChannelOutConfig
impl Sync for ChannelOutConfig
impl Unpin for ChannelOutConfig
impl UnwindSafe for ChannelOutConfig
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