diff options
author | Gregory Montoir | 2007-11-18 06:24:40 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-11-18 06:24:40 +0000 |
commit | c0cebe93bb189d0aa94ceb9fc9eca26a8b2242e4 (patch) | |
tree | d258f0042e39affe0b4616520f03a53aea96f4ca /sound | |
parent | 7b458c96b02e99d57b730876d314d3db02667743 (diff) | |
download | scummvm-rg350-c0cebe93bb189d0aa94ceb9fc9eca26a8b2242e4.tar.gz scummvm-rg350-c0cebe93bb189d0aa94ceb9fc9eca26a8b2242e4.tar.bz2 scummvm-rg350-c0cebe93bb189d0aa94ceb9fc9eca26a8b2242e4.zip |
skip silence VOC block (used in Igor)
svn-id: r29551
Diffstat (limited to 'sound')
-rw-r--r-- | sound/voc.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/voc.cpp b/sound/voc.cpp index 422cf34457..acad3ebed4 100644 --- a/sound/voc.cpp +++ b/sound/voc.cpp @@ -127,6 +127,14 @@ static byte *loadVOCFromStream(Common::ReadStream &stream, int &size, int &rate, warning("VOC file packing %d unsupported", packing); } } break; + case 3: // silence + // occur with a few Igor sounds, voc file starts with a silence block with a + // frequency different from the data block. Just ignore fow now (implementing + // it wouldn't make a big difference anyway...) + assert(len == 3); + stream.readUint16LE(); + stream.readByte(); + break; case 6: // begin of loop assert(len == 2); loops = stream.readUint16LE(); |