From: Kostya Shishkov Date: Mon, 5 Apr 2021 16:11:57 +0000 (+0200) Subject: sndplay: typo X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=5a92ee55d90571333184392ebb240581c990d18e;p=nihav-player.git sndplay: typo --- diff --git a/sndplay/src/main.rs b/sndplay/src/main.rs index bdd64dc..a5fc6ff 100644 --- a/sndplay/src/main.rs +++ b/sndplay/src/main.rs @@ -308,7 +308,7 @@ impl Player { let ch = ainfo.channels; println!("Playing {} [{}Hz {}ch]", name, arate, ch); - let ret = AudioDevice::open(arate, ch.max(2)); + let ret = AudioDevice::open(arate, ch.min(2)); if ret.is_none() { println!("cannot open output"); return;