From 68e5f1d39e6a1e7216ffb3574ca48627f8fca294 Mon Sep 17 00:00:00 2001 From: Eskil Q Date: Fri, 25 Dec 2020 22:01:01 +0100 Subject: add comment --- mumd/src/audio.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'mumd/src') diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs index b578256..8f9e2ab 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -241,6 +241,7 @@ impl Audio { let samples = signal .from_hz_to_hz(interp, spec.sample_rate as f64, SAMPLE_RATE as f64) .until_exhausted() + // if the source audio is stereo and is being played as mono, discard the right audio .flat_map(|e| if output_config.channels == 1 { vec![e[0]] } else { e.to_vec() }) .collect::>(); (*event, samples) -- cgit v1.2.1