Trait jumpy::audio::AudioCenterExt

source ·
pub trait AudioCenterExt {
    // Required method
    fn play_music_from_settings(
        &mut self,
        sound_source: Handle<AudioSource>,
        sound_settings: StaticSoundSettings,
        force_restart: bool,
    );
}
Expand description

Extension of bones AudioCenter.

Required Methods§

source

fn play_music_from_settings( &mut self, sound_source: Handle<AudioSource>, sound_settings: StaticSoundSettings, force_restart: bool, )

Play some music using StaticSoundSettings. These may or may not loop.

force_restart determines if the same music is played if it should restart or not.

Implementors§