mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-05 10:29:39 +01:00
Fix crash in AudioServer when switching audio devices with different audio channels count (connecting PS5 controller, bluetooth 5.1 headphones etc.)
This commit is contained in:
parent
0909a9adb5
commit
fab0dad4bb
@ -929,6 +929,7 @@ void AudioServer::init_channels_and_buffers() {
|
|||||||
for (int j = 0; j < channel_count; j++) {
|
for (int j = 0; j < channel_count; j++) {
|
||||||
buses.write[i]->channels.write[j].buffer.resize(buffer_size);
|
buses.write[i]->channels.write[j].buffer.resize(buffer_size);
|
||||||
}
|
}
|
||||||
|
_update_bus_effects(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user