Skip to main content

CallAudio

Trait CallAudio 

Source
pub trait CallAudio: Send {
    // Required methods
    fn stats(&self) -> Arc<MediaStats> ⓘ;
    fn set_muted(&self, on: bool);
    fn set_volume(&self, volume: f32);
    fn set_share_volume(&self, volume: f32);

    // Provided method
    fn has_mic(&self) -> bool { ... }
}
Expand description

A running audio engine; dropping it stops it.

Required Methods§

Source

fn stats(&self) -> Arc<MediaStats> ⓘ

Source

fn set_muted(&self, on: bool)

Source

fn set_volume(&self, volume: f32)

Listener-side gains, 1.0 is unity.

Source

fn set_share_volume(&self, volume: f32)

Provided Methods§

Source

fn has_mic(&self) -> bool

False when the call went ahead without a microphone, so it can only be heard muted.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§