From 1db12b7f6ae74888703dfcaece93df1b8f40d30f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 30 Dec 2015 10:09:34 +0100 Subject: Allow mono wav files --- src/FileInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3