浏览代码
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
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改,包括
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; |
|
|
|
|
|
|
|