fidl_fuchsia_media_soundsTrait 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>;
}