Problem is that with a custom DSP just like the 1 given as example in the FMOD low level, when adjust just some parts or even half the length of the input buffer instead of making the sound in those frequencies lower it create cracking or popping in playback. Anyone knows the cause if this? please help!
I assume the input length is 1024, and you’ve changed it from copying only 512 from in out out, and not copying the rest? That is why your sound is bad.
You need to copy the whole buffer, not just half of it. Even if you just want to process 512 out of the 1024, you still need to copy the remaining 512 to make it process the full amount.
I’m not sure why you think that wouldnt generate noise, from what I can see you are now muting 2 samples out of 1024, which distorts the signal?
The only thing I suggest is if you take out your if statement, and leave the outbuffer[…] = inbuffer[…] bit does it sound normal, then as soon as you introduce your scaling code it distorts? This means the function you wrote is the thing distorting the signal.
read that entire document lol, I’m not a professional at this API thing I’m just on holiday from school tryna build my skillset.
And yes you are correct without the if statement it process just fine and replace 1.0f with 0.5f for all buffers there is no noise. What I’m exactly trying to do is recreate the low pass DSP but I guess ill have to use the low pass DSP and hope it works how I want it to