Hi,
Does anyone have (or would anyone be willing to write) a simple Dos/Win32 command line utility that can take two 16-bit .wav files, add them together, and output the sum as a third .wav file?
e.g.
wavadd a.wav b.wav c.wav
would go through a.wav, sample by sample, adding the same sample in b.wav, and outputing the result to c.wav.
This would really help with the digital radio listening test that I'm putting together. As well as the original, there are two further files that I must distribute losslessly, but since they're almost the same as the original, it would take much less space to losslessly pack the DIFFERENCE between the original and coded (giving a smaller FLAC), and then add it back to the original at the other end. I need to do this from a bat file, so need a command line utility to take care of this.
Can anyone help please?
Cheers,
David.
EDIT: all files will be stereo, 16-bit, and either 44.1kHZ or 48kHz sampled. c.wav will never clip, so this doesn't need to be checked for. wavadd needs to be a small program.