summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FileInput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FileInput.cpp b/src/FileInput.cpp
index 2b05ec3..eae484f 100644
--- a/src/FileInput.cpp
+++ b/src/FileInput.cpp
@@ -61,7 +61,7 @@ int FileInput::prepare(void)
fprintf(stderr, "Unsupported WAV sample depth %d\n", bits_per_sample);
return 1;
}
- if (channels != 2) {
+ if ( !(channels == 1 or channels == 2)) {
fprintf(stderr, "Unsupported WAV channels %d\n", channels);
return 1;
}