From ed1de6e2081efc23bcdcc7f94aec9cca043f4a52 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 23 Jan 2010 03:02:56 +0000 Subject: Fix regressions, only the Amiga CD32 version of Simon the Sorcerer 1 used signed sound data. svn-id: r47460 --- engines/agos/sound.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp index 835851e9c2..c8ff9a6732 100644 --- a/engines/agos/sound.cpp +++ b/engines/agos/sound.cpp @@ -482,7 +482,7 @@ void Sound::loadVoiceFile(const GameSpecificSettings *gss) { } } - const bool dataIsUnsigned = (_vm->getGameType() == GType_PP); + const bool dataIsUnsigned = true; if (!_hasVoiceFile) { sprintf(filename, "%s.voc", gss->speech_filename); @@ -514,7 +514,7 @@ void Sound::loadSfxFile(const GameSpecificSettings *gss) { _hasEffectsFile = (_effects != 0); } - const bool dataIsUnsigned = (_vm->getGameType() == GType_PP || _vm->getGameType() == GType_FF || _vm->getGameId() == GID_SIMON1CD32); + const bool dataIsUnsigned = true; if (!_hasEffectsFile) { sprintf(filename, "%s.voc", gss->effects_filename); @@ -534,7 +534,7 @@ void Sound::loadSfxFile(const GameSpecificSettings *gss) { } } -// This method is only used by Simon1 Amiga Talkie & Windows +// This method is only used by Simon1 Amiga CD32 & Windows void Sound::readSfxFile(const Common::String &filename) { if (_hasEffectsFile) return; @@ -548,7 +548,7 @@ void Sound::readSfxFile(const Common::String &filename) { error("readSfxFile: Can't load sfx file %s", filename.c_str()); } - const bool dataIsUnsigned = (_vm->getGameType() == GType_PP || _vm->getGameType() == GType_FF || _vm->getGameId() == GID_SIMON1CD32); + const bool dataIsUnsigned = (_vm->getGameId() != GID_SIMON1CD32); delete _effects; if (_vm->getGameId() == GID_SIMON1CD32) { @@ -562,14 +562,14 @@ void Sound::loadSfxTable(File *gameFile, uint32 base) { stopAll(); delete _effects; - const bool dataIsUnsigned = false; + const bool dataIsUnsigned = true; if (_vm->getPlatform() == Common::kPlatformWindows) _effects = new WavSound(_mixer, gameFile, base, DisposeAfterUse::NO); else - _effects = new VocSound(_mixer, gameFile, dataIsUnsigned, base, DisposeAfterUse::NO); + _effects = new VocSound(_mixer, gameFile, dataIsUnsigned, base, false, DisposeAfterUse::NO); } -// This method is only used by Simon1 Amiga Talkie +// This method is only used by Simon1 Amiga CD32 void Sound::readVoiceFile(const Common::String &filename) { _mixer->stopHandle(_voiceHandle); @@ -579,7 +579,7 @@ void Sound::readVoiceFile(const Common::String &filename) { if (file->isOpen() == false) error("readVoiceFile: Can't load voice file %s", filename.c_str()); - const bool dataIsUnsigned = (_vm->getGameType() == GType_PP || _vm->getGameType() == GType_FF || _vm->getGameId() == GID_SIMON1CD32); + const bool dataIsUnsigned = false; delete _voice; _voice = new RawSound(_mixer, file, dataIsUnsigned); -- cgit v1.2.3