Skip to main content

AudioDeviceController

Struct AudioDeviceController 

Source
pub struct AudioDeviceController { /* private fields */ }

Implementations§

Source§

impl AudioDeviceController

Source

pub fn playout_devices(&self) -> i16

Source

pub fn recording_devices(&self) -> i16

Source

pub fn playout_device_name(&self, index: u16) -> String

Source

pub fn recording_device_name(&self, index: u16) -> String

Source

pub fn playout_device_guid(&self, index: u16) -> String

Source

pub fn recording_device_guid(&self, index: u16) -> String

Source

pub fn set_playout_device(&self, index: u16) -> bool

Source

pub fn set_recording_device(&self, index: u16) -> bool

Source

pub fn set_playout_device_by_guid(&self, guid: String) -> bool

Source

pub fn set_recording_device_by_guid(&self, guid: String) -> bool

Source

pub fn stop_recording(&self) -> bool

Source

pub fn init_recording(&self) -> bool

Source

pub fn start_recording(&self) -> bool

Source

pub fn recording_is_initialized(&self) -> bool

Source

pub fn stop_playout(&self) -> bool

Source

pub fn init_playout(&self) -> bool

Source

pub fn start_playout(&self) -> bool

Source

pub fn playout_is_initialized(&self) -> bool

Source

pub fn builtin_aec_is_available(&self) -> bool

Source

pub fn builtin_agc_is_available(&self) -> bool

Source

pub fn builtin_ns_is_available(&self) -> bool

Source

pub fn enable_builtin_aec(&self, enable: bool) -> bool

Source

pub fn enable_builtin_agc(&self, enable: bool) -> bool

Source

pub fn enable_builtin_ns(&self, enable: bool) -> bool

Source

pub fn set_adm_recording_enabled(&self, enabled: bool)

Source

pub fn adm_recording_enabled(&self) -> bool

Source

pub fn set_adm_playout_enabled(&self, enabled: bool)

Source

pub fn adm_playout_enabled(&self) -> bool

Source

pub fn acquire_platform_adm(&self) -> bool

Source

pub fn release_platform_adm(&self)

Source

pub fn platform_adm_ref_count(&self) -> i32

Source

pub fn is_platform_adm_active(&self) -> bool

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.