diff options
author | Torbjörn Andersson | 2005-01-11 08:30:28 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-01-11 08:30:28 +0000 |
commit | 9eecc9406dba5b7f7a16713c7802bd2bb2f3292a (patch) | |
tree | 71111e6799f353f8fad715c86913afcff07747aa /sound | |
parent | 13e2c224c89b618df01ec1cfb2767a77bb08b8af (diff) | |
download | scummvm-rg350-9eecc9406dba5b7f7a16713c7802bd2bb2f3292a.tar.gz scummvm-rg350-9eecc9406dba5b7f7a16713c7802bd2bb2f3292a.tar.bz2 scummvm-rg350-9eecc9406dba5b7f7a16713c7802bd2bb2f3292a.zip |
16-bit WAVs are little-endian.
svn-id: r16539
Diffstat (limited to 'sound')
-rw-r--r-- | sound/wave.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/wave.cpp b/sound/wave.cpp index 1d0ec2916e..e3e5fc2daf 100644 --- a/sound/wave.cpp +++ b/sound/wave.cpp @@ -105,8 +105,8 @@ bool loadWAVFromStream(Common::SeekableReadStream &stream, int &size, int &rate, flags = 0; if (bitsPerSample == 8) // 8 bit data is unsigned flags |= SoundMixer::FLAG_UNSIGNED; - else if (bitsPerSample == 16) // 16 bit data is signed - flags |= SoundMixer::FLAG_16BITS; + else if (bitsPerSample == 16) // 16 bit data is signed little endian + flags |= (SoundMixer::FLAG_16BITS | SoundMixer::FLAG_LITTLE_ENDIAN); else { warning("getWavInfo: unsupported bitsPerSample %d", bitsPerSample); return false; |