Revamp AudioFrontend

audio::base had a lot of unnescessary abstractions and constructs.
The current code simplifies the API in a way that makes sense and
that will allow sound effects and fading to be added in an incremental
way.
This commit is contained in:
Louis Pearson
2019-08-31 00:37:09 -06:00
parent 0fe5b66dce
commit 9dc1f8f549
5 changed files with 200 additions and 96 deletions

View File

@ -34,6 +34,8 @@ impl PlayState for MainMenuState {
// Used for client creation.
let mut client_init: Option<ClientInit> = None;
global_state.audio.play_sound("voxygen.audio.soundtrack.veloren_title_tune-3".to_string());
loop {
// Handle window events.
for event in global_state.window.fetch_events() {