changeset 101:4ad90a51a067

Set output format (input might have been not a WAV file at all)
author Chris Cannam <c.cannam@qmul.ac.uk>
date Tue, 13 May 2014 11:45:22 +0100
parents 3236a2a75b42
children b0c0051d647e
files cpp-qm-dsp/processfile.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cpp-qm-dsp/processfile.cpp	Tue May 13 11:46:50 2014 +0100
+++ b/cpp-qm-dsp/processfile.cpp	Tue May 13 11:45:22 2014 +0100
@@ -43,7 +43,7 @@
     }
 
     sfinfoOut.channels = 1;
-    sfinfoOut.format = sfinfo.format;
+    sfinfoOut.format = SF_FORMAT_WAV | SF_FORMAT_PCM_16;
     sfinfoOut.frames = sfinfo.frames;
     sfinfoOut.samplerate = sfinfo.samplerate;
     sfinfoOut.sections = sfinfo.sections;