From d620dd90bd5db3a1d40b53be6d395e5f2bcc04b7 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 26 Jan 2012 02:36:51 +0100 Subject: AUDIO: Fix missing sounds in Simon 1 Amiga CD32. It seems the VOC files used by Simon 1 Amiga CD32 use 128 as terminator block. Added this as a special case with a debug output when it's caught. --- audio/decoders/voc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/audio/decoders/voc.cpp b/audio/decoders/voc.cpp index 2cd5b23d09..eb9c4e0c56 100644 --- a/audio/decoders/voc.cpp +++ b/audio/decoders/voc.cpp @@ -321,6 +321,11 @@ void VocStream::preProcess() { // In case we hit a "Terminator" block we also break here. if (_stream->eos() || block.code == 0) break; + // We also allow 128 as terminator, since Simon 1 Amiga CD32 uses it. + if (block.code == 128) { + debug(3, "VocStream::preProcess: Caught 128 as terminator"); + break; + } block.length = _stream->readByte(); block.length |= _stream->readByte() << 8; -- cgit v1.2.3