Browse Source

Merge pull request #48162 from mrushyendra/fix_audioserver_crash

Fix AudioServer Crash when no buses present
Rémi Verschelde 4 years ago
parent
commit
2a1a083929
1 changed files with 1 additions and 0 deletions
  1. 1 0
      servers/audio_server.cpp

+ 1 - 0
servers/audio_server.cpp

@@ -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();