mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user