pub enum ChannelInConfig {
Mono = 16,
Stereo = 12,
}Expand description
Audio channel configuration - Input (Microphone)
Defines channel configurations for audio input (recording), supporting mono and stereo. Different channel configurations affect recording quality and storage space.
§Examples
use android_media::ChannelInConfig;
let config = ChannelInConfig::Mono;
assert_eq!(config.value(), 16);
assert_eq!(config.channel_count(), 1);Variants§
Mono = 16
Mono recording - each sample point contains data from one channel
Stereo = 12
Stereo recording - each sample point contains data from left and right channels
Implementations§
Source§impl ChannelInConfig
impl ChannelInConfig
Trait Implementations§
Source§impl Clone for ChannelInConfig
impl Clone for ChannelInConfig
Source§fn clone(&self) -> ChannelInConfig
fn clone(&self) -> ChannelInConfig
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 ChannelInConfig
impl Debug for ChannelInConfig
Source§impl PartialEq for ChannelInConfig
impl PartialEq for ChannelInConfig
impl Copy for ChannelInConfig
impl Eq for ChannelInConfig
impl StructuralPartialEq for ChannelInConfig
Auto Trait Implementations§
impl Freeze for ChannelInConfig
impl RefUnwindSafe for ChannelInConfig
impl Send for ChannelInConfig
impl Sync for ChannelInConfig
impl Unpin for ChannelInConfig
impl UnwindSafe for ChannelInConfig
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