From df39e0f4725facaf492b7953db49c0f9a58296e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20T=2E=20Listwon?= Date: Fri, 1 Apr 2022 10:02:16 +0200 Subject: [PATCH] Fix crash in AudioServer when switching audio devices with different audio channels count (connecting PS5 controller, bluetooth 5.1 headphones etc.) --- servers/audio_server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp index 1d03b94a971..411ad2e7109 100644 --- a/servers/audio_server.cpp +++ b/servers/audio_server.cpp @@ -929,6 +929,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); } }