Skip to main content

stereo_bars

Function stereo_bars 

Source
pub fn stereo_bars(
    left: &AudioHistogram,
    right: &AudioHistogram,
    layout: &WaveformLayout,
) -> Vec<WaveformBarRect>
Expand description

Layout stereo histograms: left bars extend up from baseline_y, right bars extend down. Always anchored; layout.mode is ignored.

If the two histograms have different lengths, the shorter one wins — the surplus bars are dropped (their data is meaningless without a paired channel).

§Panics

Same conditions as mono_bars.