diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-30 12:48:55 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-30 15:25:56 +0200 |
| commit | 6bf6c40b8f6cf1fc08667a1049fc7f2ee4c0c140 (patch) | |
| tree | 396bbed6cfed444e5a3b5040f1d38e1299af35b6 /mumd/src/audio.rs | |
| parent | 950158eaadd8db9ef0eb48187e825524499422d3 (diff) | |
| download | mum-6bf6c40b8f6cf1fc08667a1049fc7f2ee4c0c140.tar.gz | |
skip handling >2 channels for now
See #80.
Diffstat (limited to 'mumd/src/audio.rs')
| -rw-r--r-- | mumd/src/audio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs index 82acfee..fdbeaee 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -269,7 +269,7 @@ impl Audio { 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()), - _ => unimplemented!() // TODO handle panic (if speaker is surround speaker) + _ => unimplemented!("Only mono and stereo sound is supported. See #80.") }; let mut signal = signal::from_interleaved_samples_iter::<_, [f32; 2]>(iter); let interp = Linear::new(Signal::next(&mut signal), Signal::next(&mut signal)); |
