From 5a92ee55d90571333184392ebb240581c990d18e Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 5 Apr 2021 18:11:57 +0200 Subject: [PATCH] sndplay: typo --- sndplay/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5