Skip to main content

downmix_stereo

Function downmix_stereo 

Source
pub(crate) fn downmix_stereo(src: &[i16], channels: usize, dst: &mut [i16])
Expand description

Fold one surround frame (surround_channel_map order) to interleaved stereo, dst holding the frame’s samples per channel twice: each side takes its front channel at unity and the center and its surround channels at -3 dB (ITU-R BS.775, the LFE left out), saturating rather than wrapping, as a browser’s own speaker downmix of the surround stream sounds.