aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index d12447d..714d540 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -32,7 +32,10 @@ pub fn main() {
let desired_spec = AudioSpecDesired {
freq: Some(48_000),
+ #[cfg(feature = "stereo")]
channels: Some(2),
+ #[cfg(not(feature = "stereo"))]
+ channels: Some(1),
samples: Some(8192 as u16),
};