pub struct NativeAudioSource { /* private fields */ }Implementations§
Source§impl NativeAudioSource
impl NativeAudioSource
pub fn new( options: AudioSourceOptions, sample_rate: u32, num_channels: u32, queue_size_ms: u32, ) -> NativeAudioSource
pub fn clear_buffer(&self)
pub async fn capture_frame( &self, frame: &AudioFrame<'_>, ) -> Result<(), RtcError>
pub fn set_audio_options(&self, options: AudioSourceOptions)
pub fn audio_options(&self) -> AudioSourceOptions
pub fn sample_rate(&self) -> u32
pub fn num_channels(&self) -> u32
Trait Implementations§
Source§impl Clone for NativeAudioSource
impl Clone for NativeAudioSource
Source§fn clone(&self) -> NativeAudioSource
fn clone(&self) -> NativeAudioSource
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 moreAuto Trait Implementations§
impl Freeze for NativeAudioSource
impl RefUnwindSafe for NativeAudioSource
impl Send for NativeAudioSource
impl Sync for NativeAudioSource
impl Unpin for NativeAudioSource
impl UnsafeUnpin for NativeAudioSource
impl UnwindSafe for NativeAudioSource
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