summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorBartłomiej T. Listwon <blistwon@gmail.com>2022-04-01 16:01:22 +0200
committerBartłomiej T. Listwon <blistwon@gmail.com>2022-04-01 16:01:22 +0200
commit30962c6b69629cae05acac4eedf3716e053d2ae2 (patch)
tree5c0a63f19083d2d3dd5e0e8789166b9a554090d1 /servers
parent916ec2b66e193d58cd16c6a1704f1c49fe589bd0 (diff)
Fix crash in AudioServer when switching audio devices with different audio channels count (connecting PS5 controller, bluetooth 5.1 headphones etc.)
Diffstat (limited to 'servers')
-rw-r--r--servers/audio_server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp
index 9d83e5cacc..777bebcf60 100644
--- a/servers/audio_server.cpp
+++ b/servers/audio_server.cpp
@@ -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);
}
}