I'm trying to do one simple thing on Google's C++ Oboe library: pick 2 recordings and merge both. That is, make as if the 2 were playing at the same time.
Oboe works with Float numbers from -1.0 to +1.0. Can I simply do like this:
Audio1:
-0.2, -0.221, -0.23, -0.24, ...
Audio2:
-0.3, -0.23, -0.12, -0.87, ...
Audio Mixed:
(-0.2+-0.3)/2, (-0.221+-.023)/2, (-0.23 -0.12)/2, (-0.24-0.87)/2, ...
?
That is, take the average of both audios into the new audio?
Is this how 2 simple audio files are merged together?