Trait general_audio_native::AudioPlayer
source · pub trait AudioPlayer {
type Sound;
type Handle: AudioHandle;
// Required methods
fn play(&self, sound: &Self::Sound) -> Self::Handle;
fn play_loop(&self, sound: &Self::Sound) -> Self::Handle;
fn load_sound(&self, bytes: &'static [u8]) -> Self::Sound;
}