diff options
author | Robert Göffringmann | 2003-12-18 13:17:33 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-12-18 13:17:33 +0000 |
commit | a74f8eb717471d3a1c479eead150391a0aca03d6 (patch) | |
tree | 8cd358c0dc965814378bdacde3ebbe4e44611aaf /sword1/music.cpp | |
parent | 461abf1b9ef136a40ed83142eb062f4debd87b07 (diff) | |
download | scummvm-rg350-a74f8eb717471d3a1c479eead150391a0aca03d6.tar.gz scummvm-rg350-a74f8eb717471d3a1c479eead150391a0aca03d6.tar.bz2 scummvm-rg350-a74f8eb717471d3a1c479eead150391a0aca03d6.zip |
endian conversion for music system
svn-id: r11746
Diffstat (limited to 'sword1/music.cpp')
-rw-r--r-- | sword1/music.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sword1/music.cpp b/sword1/music.cpp index 155c9ac02f..5ed0b8e568 100644 --- a/sword1/music.cpp +++ b/sword1/music.cpp @@ -57,7 +57,7 @@ void SwordMusic::mixer(int16 *buf, uint len) { if (len >= maxLen) { for (uint32 cnt = 0; cnt < maxLen; cnt++) buf[(cnt << 2) | 0] = buf[(cnt << 2) | 1] = - buf[(cnt << 2) | 2] = buf[(cnt << 2) | 3] = _musicBuf[_bufPos + cnt]; + buf[(cnt << 2) | 2] = buf[(cnt << 2) | 3] = (int16)READ_LE_UINT16(_musicBuf + _bufPos + cnt); _smpInBuf -= maxLen; _bufPos = 0; len -= maxLen; @@ -66,7 +66,7 @@ void SwordMusic::mixer(int16 *buf, uint len) { if (len) { for (uint32 cnt = 0; cnt < len; cnt++) buf[(cnt << 2) | 0] = buf[(cnt << 2) | 1] = - buf[(cnt << 2) | 2] = buf[(cnt << 2) | 3] = _musicBuf[_bufPos + cnt]; + buf[(cnt << 2) | 2] = buf[(cnt << 2) | 3] = (int16)READ_LE_UINT16(_musicBuf + _bufPos + cnt); _smpInBuf -= len; _bufPos += len; } |