mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 12:43:43 +00:00
Merge pull request #15153 from poke1024/fix12112
Delete AudioServer buses after driver shutdown
This commit is contained in:
commit
52deb679df
@ -892,15 +892,15 @@ void AudioServer::load_default_bus_layout() {
|
||||
|
||||
void AudioServer::finish() {
|
||||
|
||||
for (int i = 0; i < AudioDriverManager::get_driver_count(); i++) {
|
||||
AudioDriverManager::get_driver(i)->finish();
|
||||
}
|
||||
|
||||
for (int i = 0; i < buses.size(); i++) {
|
||||
memdelete(buses[i]);
|
||||
}
|
||||
|
||||
buses.clear();
|
||||
|
||||
for (int i = 0; i < AudioDriverManager::get_driver_count(); i++) {
|
||||
AudioDriverManager::get_driver(i)->finish();
|
||||
}
|
||||
}
|
||||
|
||||
void AudioServer::update() {
|
||||
|
Loading…
Reference in New Issue
Block a user