Add play_music call to audiofrontend

This commit is contained in:
Louis Pearson
2019-08-31 15:39:40 -06:00
parent 132d108086
commit 41cd20aaf8
3 changed files with 21 additions and 3 deletions

View File

@ -34,7 +34,7 @@ impl PlayState for MainMenuState {
// Used for client creation.
let mut client_init: Option<ClientInit> = None;
let music = global_state.audio.play_sound("voxygen.audio.soundtrack.veloren_title_tune-3".to_string());
let music = global_state.audio.play_music("voxygen.audio.soundtrack.veloren_title_tune-3".to_string());
global_state.audio.stop_channel(music, Fader::fade_out(10.0));
loop {