]> git.nihav.org Git - nihav-player.git/commitdiff
sndplay: typo
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 5 Apr 2021 16:11:57 +0000 (18:11 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 5 Apr 2021 16:32:22 +0000 (18:32 +0200)
sndplay/src/main.rs

index bdd64dcdaa60a4a501917f622a607e2a02f10686..a5fc6ff29b2648b44a69442d883d91e5c81fc82f 100644 (file)
@@ -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;