diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2021-04-05 18:11:57 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2021-04-05 18:32:22 +0200 |
commit | 5a92ee55d90571333184392ebb240581c990d18e (patch) | |
tree | 37b490be41e68f0e06beae34ff7062e95fbad200 /sndplay/src/main.rs | |
parent | 41e41352fa239e4cbaf355b91a685fc99bef573f (diff) | |
download | nihav-player-5a92ee55d90571333184392ebb240581c990d18e.tar.gz |
sndplay: typo
Diffstat (limited to 'sndplay/src/main.rs')
-rw-r--r-- | sndplay/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |