// from: https://stackoverflow.com/questions/16905458/reduce-the-volume-of-a-wav-audio-file-using-c
// open file
// read into char * fileBuffer
int sampleCount = ((fileSize - dataOffset) / sizeof (int16_t));
int16_t * samp = (int16_t *) &fileBuffer[dataOffset];
float percent = 0.6f;
for (int i = 0; i < sampleCount; i++){
samp[i] -= (int16_t) (samp[i] * percent); // Should work +/- values
}
// save file