Stereo-to-mono averaging
Each left/right sample pair is combined as (L + R) / 2 and written to a single output channel, preserving sample rate, bit depth expectations, and duration. Averaging rather than summing keeps the signal from exceeding full scale, but it also means two channels carrying identical content at full volume come out at the same level, not louder, and channels that are inverted relative to each other partially cancel.