Browse Source

fix - Audio input gets muted after a while on android #86428

AndreiPetrov890 1 year ago
parent
commit
3c0211a350
1 changed files with 0 additions and 3 deletions
  1. 0 3
      servers/audio/audio_stream.cpp

+ 0 - 3
servers/audio/audio_stream.cpp

@@ -353,9 +353,6 @@ int AudioStreamPlaybackMicrophone::_mix_internal(AudioFrame *p_buffer, int p_fra
 
 				p_buffer[i] = AudioFrame(l, r);
 			} else {
-				if (mixed_frames == p_frames) {
-					mixed_frames = i;
-				}
 				p_buffer[i] = AudioFrame(0.0f, 0.0f);
 			}
 		}