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