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
916ec2b66e
commit
30962c6b69
1 changed files with 1 additions and 0 deletions
|
@ -1343,6 +1343,7 @@ void AudioServer::init_channels_and_buffers() {
|
|||
for (int j = 0; j < channel_count; j++) {
|
||||
buses.write[i]->channels.write[j].buffer.resize(buffer_size);
|
||||
}
|
||||
_update_bus_effects(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue