wav writer: byte-swap the incoming buffer on big endian systems so that we write only little-endian 16 bit data.
fix off-by-one mistake
Merge pull request #26 from sezero/wav_be

wav writer byte-swap