# HG changeset patch # User Chris Cannam # Date 1399977922 -3600 # Node ID 4ad90a51a0670cf3760846f9b4ac6d67f948b31b # Parent 3236a2a75b42d9459312b76834ca9d2b42ed996e Set output format (input might have been not a WAV file at all) diff -r 3236a2a75b42 -r 4ad90a51a067 cpp-qm-dsp/processfile.cpp --- 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;