summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-07 11:11:03 +0200
committerGitHub <noreply@github.com>2017-08-07 11:11:03 +0200
commit2bb8ab7b89b82017ea514a7f67aef905046c9a70 (patch)
treeae0b951a7b55427abeb63c6ca969988f18c1d7cf /servers
parenta2cedd81d4732aefac454e18a2c9788aab11cec2 (diff)
parent1ca107a057b13a73deedb741b1fcc67ec7d885d6 (diff)
Merge pull request #10045 from marcelofg55/audioserver_finish
Fix double finalisation of audio drivers
Diffstat (limited to 'servers')
-rw-r--r--servers/audio_server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp
index 0d2550e53b..d5f351454d 100644
--- a/servers/audio_server.cpp
+++ b/servers/audio_server.cpp
@@ -772,10 +772,11 @@ void AudioServer::finish() {
buses.clear();
- if (AudioDriver::get_singleton()) {
- AudioDriver::get_singleton()->finish();
+ for (int i = 0; i < AudioDriverManager::get_driver_count(); i++) {
+ AudioDriverManager::get_driver(i)->finish();
}
}
+
void AudioServer::update() {
}