diff options
| author | riadbettole <[email protected]> | 2023-12-11 09:12:30 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-11 09:12:30 +0100 |
| commit | 31d3ed97c75b4492cea55b458459946f7c739938 (patch) | |
| tree | b97652345a17c61ba232fd1be08c81db605b68d9 /examples/audio | |
| parent | a2e45239c314f970ada62ef08bee72e6574d8808 (diff) | |
| download | raylib-31d3ed97c75b4492cea55b458459946f7c739938.tar.gz raylib-31d3ed97c75b4492cea55b458459946f7c739938.zip | |
Update audio_raw_stream.c (#3624)
AudioInputCallBack has this
audioFrequency += 1.0f;
audioFrequency -= 1.0f;
cancels out each others
Diffstat (limited to 'examples/audio')
| -rw-r--r-- | examples/audio/audio_raw_stream.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/audio/audio_raw_stream.c b/examples/audio/audio_raw_stream.c index 6befa765..b3173ab9 100644 --- a/examples/audio/audio_raw_stream.c +++ b/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; |
