ref: 34142d252f87f9fea8e247572b79c0aba5c3a12c
parent: 78daababb39e68856af9b5932c4874d58f7bc78c
author: robs <robs>
date: Sat Dec 23 08:54:21 EST 2006
More compliance with WAVE_FORMAT_EXTENSIBLE
--- a/src/wav.c
+++ b/src/wav.c
@@ -1440,7 +1440,7 @@
if (wFormatTag == WAVE_FORMAT_GSM610)
dwDataLength = (dwDataLength+1) & ~1; /*round up to even */
- if (wFormatTag == WAVE_FORMAT_PCM && wBitsPerSample > 16)
+ if ((wFormatTag == WAVE_FORMAT_PCM && wBitsPerSample > 16) || wChannels > 2)
{
isExtensible = true;
wFmtSize += 2 + 22;