浏览代码

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;

正在加载...
取消
保存