Skip to content

Commit

Permalink
Fix AudioServer Crash when bus count equals 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrushyendra committed Apr 24, 2021
1 parent db90ab8 commit ccc375f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions servers/audio_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ void AudioServer::_driver_process(int p_frames, int32_t *p_buffer) {
init_channels_and_buffers();
}

ERR_FAIL_COND_MSG(buses.is_empty() && todo, "AudioServer bus count is less than 1.");
while (todo) {
if (to_mix == 0) {
_mix_step();
Expand Down

0 comments on commit ccc375f

Please sign in to comment.