Fix AudioServer Crash when bus count equals 0

(cherry picked from commit ccc375f163)
This commit is contained in:
Maganty Rushyendra 2021-04-24 11:06:28 -04:00 committed by Rémi Verschelde
parent 1d8d7b0d4b
commit 3f3108006f
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -246,6 +246,7 @@ void AudioServer::_driver_process(int p_frames, int32_t *p_buffer) {
init_channels_and_buffers();
}
ERR_FAIL_COND_MSG(buses.empty() && todo, "AudioServer bus count is less than 1.");
while (todo) {
if (to_mix == 0) {