Decode and align
Each input file is decoded to raw PCM in the browser, then resampled and channel-matched (mono/stereo) to a common format so the clips can be assembled sample-for-sample without pitch or speed drift. Files can arrive in different source formats and sample rates; alignment happens before any joining logic runs.