Skip to content

Commit

Permalink
AGOS: Allow digital sound effects file to be used in PC version of El…
Browse files Browse the repository at this point in the history
…vira 2.
  • Loading branch information
Kirben committed Jun 21, 2015
1 parent 5f77bcc commit 2e8fd74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engines/agos/sound.cpp
Expand Up @@ -684,7 +684,7 @@ void Sound::playRawData(byte *soundData, uint sound, uint size, uint freq) {
memcpy(buffer, soundData, size);

byte flags = 0;
if (_vm->getPlatform() == Common::kPlatformDOS)
if (_vm->getPlatform() == Common::kPlatformDOS && _vm->getGameId() != GID_ELVIRA2)
flags = Audio::FLAG_UNSIGNED;

Audio::AudioStream *stream = Audio::makeRawStream(buffer, size, freq, flags);
Expand Down
3 changes: 1 addition & 2 deletions engines/agos/zones.cpp
Expand Up @@ -94,8 +94,7 @@ void AGOSEngine::loadZone(uint16 zoneNum, bool useError) {

vpe->sfxFile = NULL;

if ((getPlatform() == Common::kPlatformAmiga || getPlatform() == Common::kPlatformAtariST) &&
getGameType() == GType_ELVIRA2) {
if (getGameType() == GType_ELVIRA2) {
// A singe sound file is used for Amiga and AtariST versions
if (loadVGASoundFile(1, 3)) {
vpe->sfxFile = _block;
Expand Down

0 comments on commit 2e8fd74

Please sign in to comment.