diff options
author | Torbjörn Andersson | 2005-01-11 08:32:10 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-01-11 08:32:10 +0000 |
commit | c5e83de099dcffca0f5c0d791305c0189467e9d9 (patch) | |
tree | 043f8eff7f879a221c18a68e6e164e2bd9510417 /sword2/sound.cpp | |
parent | 9eecc9406dba5b7f7a16713c7802bd2bb2f3292a (diff) | |
download | scummvm-rg350-c5e83de099dcffca0f5c0d791305c0189467e9d9.tar.gz scummvm-rg350-c5e83de099dcffca0f5c0d791305c0189467e9d9.tar.bz2 scummvm-rg350-c5e83de099dcffca0f5c0d791305c0189467e9d9.zip |
Use Fingolfin's new WAV code.
svn-id: r16540
Diffstat (limited to 'sword2/sound.cpp')
-rw-r--r-- | sword2/sound.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sword2/sound.cpp b/sword2/sound.cpp index a2bb003bf2..b5dff64f4a 100644 --- a/sword2/sound.cpp +++ b/sword2/sound.cpp @@ -128,7 +128,9 @@ void Sword2Engine::triggerFx(uint8 i) { else type = RDSE_FXSPOT; - uint32 rv = _sound->playFx(i + 1, fxQueue[i].data, fxQueue[i].volume, fxQueue[i].pan, type); + uint32 len = _resman->fetchLen(fxQueue[i].resource) - sizeof(StandardHeader); + uint32 rv = _sound->playFx(i + 1, len, fxQueue[i].data, fxQueue[i].volume, fxQueue[i].pan, type); + if (rv) debug(5, "SFX ERROR: playFx() returned %.8x", rv); } |