audio: write pad byte when data length is odd.
This is specified in RIFF format, but I forgot to implement. ckData Binary data of fixed or variable size. The start of ckData is word-aligned with respect to the start of the RIFF file. If the chunk size is an odd number of bytes, a pad byte with value zero is written after ckData. Word aligning improves access speed (for chunks resident in memory) and maintains compatibility with EA IFF. The ckSize value does not include the pad byte. (From http://www.kk.iij4u.or.jp/~kondo/wave/mpidata.txt)
parent
796c18f3
Please register or sign in to comment