fidl_fuchsia_media_sounds

Trait PlayerProxyInterface

Source
pub trait PlayerProxyInterface: Send + Sync {
    type AddSoundFromFileResponseFut: Future<Output = Result<PlayerAddSoundFromFileResult, Error>> + Send;
    type PlaySoundResponseFut: Future<Output = Result<PlayerPlaySoundResult, Error>> + Send;

    // Required methods
    fn add_sound_from_file(
        &self,
        id: u32,
        file: ClientEnd<FileMarker>,
    ) -> Self::AddSoundFromFileResponseFut;
    fn add_sound_buffer(
        &self,
        id: u32,
        buffer: Buffer,
        stream_type: &AudioStreamType,
    ) -> Result<(), Error>;
    fn remove_sound(&self, id: u32) -> Result<(), Error>;
    fn play_sound(
        &self,
        id: u32,
        usage: AudioRenderUsage,
    ) -> Self::PlaySoundResponseFut;
    fn stop_playing_sound(&self, id: u32) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn add_sound_from_file( &self, id: u32, file: ClientEnd<FileMarker>, ) -> Self::AddSoundFromFileResponseFut

Source

fn add_sound_buffer( &self, id: u32, buffer: Buffer, stream_type: &AudioStreamType, ) -> Result<(), Error>

Source

fn remove_sound(&self, id: u32) -> Result<(), Error>

Source

fn play_sound( &self, id: u32, usage: AudioRenderUsage, ) -> Self::PlaySoundResponseFut

Source

fn stop_playing_sound(&self, id: u32) -> Result<(), Error>

Implementors§