Explorar o código

Update audio_raw_stream.c (#3624)

AudioInputCallBack has this
    audioFrequency += 1.0f;
    audioFrequency -= 1.0f;

cancels out each others
riadbettole hai 1 ano
pai
achega
31d3ed97c7
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      examples/audio/audio_raw_stream.c

+ 1 - 2
examples/audio/audio_raw_stream.c

@@ -38,8 +38,7 @@ float sineIdx = 0.0f;
 void AudioInputCallback(void *buffer, unsigned int frames)
 {
     audioFrequency = frequency + (audioFrequency - frequency)*0.95f;
-    audioFrequency += 1.0f;
-    audioFrequency -= 1.0f;
+
     float incr = audioFrequency/44100.0f;
     short *d = (short *)buffer;