mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-06 06:13:10 +00:00
Update audio_raw_stream.c (#3624)
AudioInputCallBack has this
audioFrequency += 1.0f;
audioFrequency -= 1.0f;
cancels out each others
This commit is contained in:
parent
a2e45239c3
commit
31d3ed97c7
@ -38,8 +38,7 @@ float sineIdx = 0.0f;
|
|||||||
void AudioInputCallback(void *buffer, unsigned int frames)
|
void AudioInputCallback(void *buffer, unsigned int frames)
|
||||||
{
|
{
|
||||||
audioFrequency = frequency + (audioFrequency - frequency)*0.95f;
|
audioFrequency = frequency + (audioFrequency - frequency)*0.95f;
|
||||||
audioFrequency += 1.0f;
|
|
||||||
audioFrequency -= 1.0f;
|
|
||||||
float incr = audioFrequency/44100.0f;
|
float incr = audioFrequency/44100.0f;
|
||||||
short *d = (short *)buffer;
|
short *d = (short *)buffer;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user