fidl_fuchsia_media

Trait AudioCoreProxyInterface

Source
pub trait AudioCoreProxyInterface: Send + Sync {
    type GetVolumeFromDbResponseFut: Future<Output = Result<f32, Error>> + Send;
    type GetDbFromVolumeResponseFut: Future<Output = Result<f32, Error>> + Send;

    // Required methods
    fn create_audio_renderer(
        &self,
        audio_out_request: ServerEnd<AudioRendererMarker>,
    ) -> Result<(), Error>;
    fn create_audio_capturer_with_configuration(
        &self,
        stream_type: &AudioStreamType,
        configuration: &AudioCapturerConfiguration,
        audio_capturer_request: ServerEnd<AudioCapturerMarker>,
    ) -> Result<(), Error>;
    fn create_audio_capturer(
        &self,
        loopback: bool,
        audio_in_request: ServerEnd<AudioCapturerMarker>,
    ) -> Result<(), Error>;
    fn enable_device_settings(&self, enabled: bool) -> Result<(), Error>;
    fn set_render_usage_gain(
        &self,
        usage: AudioRenderUsage,
        gain_db: f32,
    ) -> Result<(), Error>;
    fn set_capture_usage_gain(
        &self,
        usage: AudioCaptureUsage,
        gain_db: f32,
    ) -> Result<(), Error>;
    fn bind_usage_volume_control(
        &self,
        usage: &Usage,
        volume_control: ServerEnd<VolumeControlMarker>,
    ) -> Result<(), Error>;
    fn get_volume_from_db(
        &self,
        usage: &Usage,
        gain_db: f32,
    ) -> Self::GetVolumeFromDbResponseFut;
    fn get_db_from_volume(
        &self,
        usage: &Usage,
        volume: f32,
    ) -> Self::GetDbFromVolumeResponseFut;
    fn set_interaction(
        &self,
        active: &Usage,
        affected: &Usage,
        behavior: Behavior,
    ) -> Result<(), Error>;
    fn reset_interactions(&self) -> Result<(), Error>;
    fn load_defaults(&self) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn create_audio_renderer( &self, audio_out_request: ServerEnd<AudioRendererMarker>, ) -> Result<(), Error>

Source

fn create_audio_capturer_with_configuration( &self, stream_type: &AudioStreamType, configuration: &AudioCapturerConfiguration, audio_capturer_request: ServerEnd<AudioCapturerMarker>, ) -> Result<(), Error>

Source

fn create_audio_capturer( &self, loopback: bool, audio_in_request: ServerEnd<AudioCapturerMarker>, ) -> Result<(), Error>

Source

fn enable_device_settings(&self, enabled: bool) -> Result<(), Error>

Source

fn set_render_usage_gain( &self, usage: AudioRenderUsage, gain_db: f32, ) -> Result<(), Error>

Source

fn set_capture_usage_gain( &self, usage: AudioCaptureUsage, gain_db: f32, ) -> Result<(), Error>

Source

fn bind_usage_volume_control( &self, usage: &Usage, volume_control: ServerEnd<VolumeControlMarker>, ) -> Result<(), Error>

Source

fn get_volume_from_db( &self, usage: &Usage, gain_db: f32, ) -> Self::GetVolumeFromDbResponseFut

Source

fn get_db_from_volume( &self, usage: &Usage, volume: f32, ) -> Self::GetDbFromVolumeResponseFut

Source

fn set_interaction( &self, active: &Usage, affected: &Usage, behavior: Behavior, ) -> Result<(), Error>

Source

fn reset_interactions(&self) -> Result<(), Error>

Source

fn load_defaults(&self) -> Result<(), Error>

Implementors§