FLAC can reversibly transform stereo channels into correlated combinations such as mid and side before encoding. The decoder reconstructs the original left and right samples. This is an internal lossless coding tool, rather than a two-speaker downmix, a wider surround effect or permission to present the side signal as a third output channel.
Work through an even-valued pair
Use illustrative left and right sample values of ten and six. The mid value is their sum shifted right once: eight. The side is left minus right: four. For reconstruction, restore the doubled mid value of sixteen, then compute left as (16 + 4) divided by two and right as (16 − 4) divided by two. The original ten and six return exactly.
Preserve the odd-value rule
The actual integer transform also handles odd side values, using the rule in RFC 9639 to restore the needed low-bit information. Treating mid as an imprecise floating-point average without that rule would not describe the specified reversible process. The side representation can need an extra bit because a difference can exceed either channel’s original magnitude.
Keep per-block coding separate from output layout
The encoder can choose supported interchannel decorrelation independently for each block. One block using mid-side and another using independent stereo does not mean the programme changed its speaker arrangement at that point. A format inspector should describe the stored coding mode separately from the reconstructed output channels, especially when comparing frame headers.
Investigate a wrongly routed output
If a custom decoder path sounds unusually thin or has a strong difference signal, a maintainer can inspect whether it reconstructed left and right before routing samples. That symptom alone does not establish the cause. Viewers can report the affected material and output path while support examines the actual decode stage. The useful result is a reversible sample example and a clear reconstruction boundary, with a lossless storage transform kept distinct from listening-mode processing applied later by the television or receiver.
