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§