瀏覽代碼

Update audio_raw_stream.c (#3624)

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

cancels out each others
pull/3628/head
riadbettole 1 年之前
committed by GitHub
父節點
當前提交
31d3ed97c7
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增2 行删除
  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;

Loading…
取消
儲存