Correct field in output .wav file header
Closed this issue · 3 comments
For 32-bit float PCM WAV, AudioFormat (Compression type) field must contain 3 (IEEE float).
Correct 2 files (waveSink.cpp, waveSinkCut.cpp):
head.AudioFormat = sampleFormat == SMILE_SF_32BIT_FLOAT ? 3 : 1; // !!! ??
Otherwise the float wav files are misinterpreted by a number of programs.
https://audiocoding.ru/articles/2008-05-22-wav-file-structure/wav_formats.txt
Best regards
Yevgueny
Thanks a lot for reporting this bug! I've fixed this in our internal version. We have planned to publish a new open-source release on GitHub in January which will include this fix and other improvements. Until then, I'll leave this issue open for now.
Great! And nice to meet you. I've corrected it for myself in the local version, which is quite enough for me. Will report if find more. (I'm trying using it for 1-st day only, and with the current documentation it's necessary to read certain sources and test edge cases in detail.)
Version 3.0.1 has been released with a fix so I'll close this issue.