sndplay: typo
[nihav-player.git] / 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;