How to merge 2 WAV files together? Can I take the average of the 2 audio file float values?
If your goal is to simply make it sound like they were playing at the same time, you can simply just add them together element-wise. There is need to &quot;average&quot;. The resulting waveform is the same, but scaled by a factor of 2 in your case. Technically, that number could really be anything.
If you want different properties, where maybe one sounds louder than the other, then you'll have to do something else.