Hi all, I am playing an audio file. I read it as a byte[] and then I need to normalize the audio by putting values into range of [-1,1]. I want to then put each flo
byte[]
if (Math.Abs(sample) > biggest) biggest = sample;
I would change this to:
if (Math.Abs(sample) > biggest) biggest = Math.Abs(sample);
Because if the biggest value is negative you will multiply all values with a negative.