diff options
author | Johannes Schickel | 2009-05-18 22:11:56 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-18 22:11:56 +0000 |
commit | 90b4afd41b834f90520eebefcb9f6e332bacc546 (patch) | |
tree | 8b8a4f0075564a2ac5b0bb4f2e076dc8259e2199 | |
parent | 29cf3ed1a43b76ed2bd6da2c24261ce0375f8a50 (diff) | |
download | scummvm-rg350-90b4afd41b834f90520eebefcb9f6e332bacc546.tar.gz scummvm-rg350-90b4afd41b834f90520eebefcb9f6e332bacc546.tar.bz2 scummvm-rg350-90b4afd41b834f90520eebefcb9f6e332bacc546.zip |
Add some simple implementation for type 8 data blocks:
- Fix sound effect in LoL demo
svn-id: r40708
-rw-r--r-- | sound/voc.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/voc.cpp b/sound/voc.cpp index 294c75b064..3e8d8c2ed3 100644 --- a/sound/voc.cpp +++ b/sound/voc.cpp @@ -143,6 +143,15 @@ static byte *loadVOCFromStream(Common::ReadStream &stream, int &size, int &rate, case 7: // end of loop assert(len == 0); break; + case 8: // "Extended" + // This occures in the LoL Intro demo. This block can usually be used to create stereo + // sound, but the LoL intro has only an empty block, thus this dummy implementation will + // work. + assert(len == 4); + stream.readUint16LE(); + stream.readByte(); + stream.readByte(); + break; default: warning("Unhandled code in VOC file : %d", code); return ret_sound; |