Trait general_audio_native::AudioPlayer[][src]

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

Associated Types

Loading content...

Required methods

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

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

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

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 NativeAudioPlayer[src]

type Sound = NativeSound

type Handle = NativeHandle

Loading content...