Delete AudioServer buses after driver shutdown
This commit is contained in:
parent
f11a138505
commit
d5ed266078
1 changed files with 4 additions and 4 deletions
|
@ -892,15 +892,15 @@ void AudioServer::load_default_bus_layout() {
|
||||||
|
|
||||||
void AudioServer::finish() {
|
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++) {
|
for (int i = 0; i < buses.size(); i++) {
|
||||||
memdelete(buses[i]);
|
memdelete(buses[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
buses.clear();
|
buses.clear();
|
||||||
|
|
||||||
for (int i = 0; i < AudioDriverManager::get_driver_count(); i++) {
|
|
||||||
AudioDriverManager::get_driver(i)->finish();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioServer::update() {
|
void AudioServer::update() {
|
||||||
|
|
Loading…
Reference in a new issue