aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/audio/sound_effects.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-06-19 16:05:20 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-06-19 16:05:20 +0200
commit13b010e939acec028158bba9c42bbb17c694e879 (patch)
treeba7e0647f081bdd350473e202bf3f19b6d36f6cd /mumd/src/audio/sound_effects.rs
parentf12b40d09d77f75e5349b8acd2369e79ffa01122 (diff)
downloadmum-13b010e939acec028158bba9c42bbb17c694e879.tar.gz
note interleaved
Diffstat (limited to 'mumd/src/audio/sound_effects.rs')
-rw-r--r--mumd/src/audio/sound_effects.rs6
1 files 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<dyn Iterator<Item = f32>> = match spec.channels {
1 => Box::new(samples.into_iter().flat_map(|e| vec![e, e])),
2 => Box::new(samples.into_iter()),