Преглед изворни кода
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
No known key found for this signature in database
GPG Key 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; |
|
|
|
|
|
|
|