fidl_fuchsia_media

Trait AudioConsumerProxyInterface

Source
pub trait AudioConsumerProxyInterface: Send + Sync {
    type WatchStatusResponseFut: Future<Output = Result<AudioConsumerStatus, Error>> + Send;

    // Required methods
    fn create_stream_sink(
        &self,
        buffers: Vec<Vmo>,
        stream_type: &AudioStreamType,
        compression: Option<&Compression>,
        stream_sink_request: ServerEnd<StreamSinkMarker>,
    ) -> Result<(), Error>;
    fn start(
        &self,
        flags: AudioConsumerStartFlags,
        reference_time: i64,
        media_time: i64,
    ) -> Result<(), Error>;
    fn stop(&self) -> Result<(), Error>;
    fn set_rate(&self, rate: f32) -> Result<(), Error>;
    fn bind_volume_control(
        &self,
        volume_control_request: ServerEnd<VolumeControlMarker>,
    ) -> Result<(), Error>;
    fn watch_status(&self) -> Self::WatchStatusResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn create_stream_sink( &self, buffers: Vec<Vmo>, stream_type: &AudioStreamType, compression: Option<&Compression>, stream_sink_request: ServerEnd<StreamSinkMarker>, ) -> Result<(), Error>

Source

fn start( &self, flags: AudioConsumerStartFlags, reference_time: i64, media_time: i64, ) -> Result<(), Error>

Source

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

Source

fn set_rate(&self, rate: f32) -> Result<(), Error>

Source

fn bind_volume_control( &self, volume_control_request: ServerEnd<VolumeControlMarker>, ) -> Result<(), Error>

Source

fn watch_status(&self) -> Self::WatchStatusResponseFut

Implementors§