Update audio_stream_effects.c

This commit is contained in:
lipx 2023-12-12 17:18:32 -03:00 committed by GitHub
parent c1c16ed786
commit deb43cdd31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,7 @@
#include "raylib.h"
#include <stdlib.h> // Required for: NULL
#include <stdbool.h> // Required for: bool
#include <stdlib.h> // Required for: NULL
// Required delay effect variables
static float *delayBuffer = NULL;
@ -151,7 +150,7 @@ static void AudioProcessEffectLPF(void *buffer, unsigned int frames)
const float k = cutoff / (cutoff + 0.1591549431f); // RC filter formula
// Converts the buffer data before using it
float * bufferData = (float *)buffer;
float *bufferData = (float *)buffer;
for (unsigned int i = 0; i < frames*2; i += 2)
{
const float l = bufferData[i];