[][src]Trait prototty_audio::AudioPlayer

pub trait AudioPlayer {
    type Sound;
    fn play(&self, sound: &Self::Sound, properties: AudioProperties);
fn load_sound(&self, bytes: &'static [u8]) -> Self::Sound; }

Associated Types

type Sound

Loading content...

Required methods

fn play(&self, sound: &Self::Sound, properties: AudioProperties)

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

Loading content...

Implementations on Foreign Types

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

type Sound = &'static [u8]

Loading content...

Implementors

Loading content...