From 13b010e939acec028158bba9c42bbb17c694e879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sat, 19 Jun 2021 16:05:20 +0200 Subject: note interleaved --- mumd/src/audio/sound_effects.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mumd/src/audio/sound_effects.rs b/mumd/src/audio/sound_effects.rs index 7e4e96a..82c281b 100644 --- a/mumd/src/audio/sound_effects.rs +++ b/mumd/src/audio/sound_effects.rs @@ -108,9 +108,9 @@ pub fn load_sound_effects(overrides: &[SoundEffect], num_channels: usize) -> Has // Unpack the samples. let (samples, spec) = unpack_audio(data, kind); // If the audio is mono (single channel), pad every sample with - // itself, since we later assume that audio is stored as LRLRLR (or - // RLRLRL). Without this, mono audio would be played in double - // speed. + // itself, since we later assume that audio is stored interleaved as + // LRLRLR (or RLRLRL). Without this, mono audio would be played in + // double speed. let iter: Box> = match spec.channels { 1 => Box::new(samples.into_iter().flat_map(|e| vec![e, e])), 2 => Box::new(samples.into_iter()), -- cgit v1.2.1