[][src]Trait general_audio_web::AudioPlayer

pub trait AudioPlayer {
    type Sound;
    type Handle: AudioHandle;
#[must_use]    fn play(&self, sound: &Self::Sound) -> Self::Handle;
#[must_use] fn play_loop(&self, sound: &Self::Sound) -> Self::Handle;
fn load_sound(&self, bytes: &'static [u8]) -> Self::Sound; }

Associated Types

Loading content...

Required methods

#[must_use]fn play(&self, sound: &Self::Sound) -> Self::Handle

#[must_use]fn play_loop(&self, sound: &Self::Sound) -> Self::Handle

fn load_sound(&self, bytes: &'static [u8]) -> Self::Sound

Loading content...

Implementations on Foreign Types

impl<A> AudioPlayer for Option<A> where
    A: AudioPlayer
[src]

type Sound = Option<<A as AudioPlayer>::Sound>

type Handle = Option<<A as AudioPlayer>::Handle>

Loading content...

Implementors

impl AudioPlayer for WebAudioPlayer[src]

type Sound = WebSound

type Handle = WebHandle

Loading content...