AGOS: Allow digital sound effects file to be used in PC version of Elvira 2.
This commit is contained in:
parent
5f77bcc74c
commit
2e8fd74548
2 changed files with 2 additions and 3 deletions
|
@ -684,7 +684,7 @@ void Sound::playRawData(byte *soundData, uint sound, uint size, uint freq) {
|
||||||
memcpy(buffer, soundData, size);
|
memcpy(buffer, soundData, size);
|
||||||
|
|
||||||
byte flags = 0;
|
byte flags = 0;
|
||||||
if (_vm->getPlatform() == Common::kPlatformDOS)
|
if (_vm->getPlatform() == Common::kPlatformDOS && _vm->getGameId() != GID_ELVIRA2)
|
||||||
flags = Audio::FLAG_UNSIGNED;
|
flags = Audio::FLAG_UNSIGNED;
|
||||||
|
|
||||||
Audio::AudioStream *stream = Audio::makeRawStream(buffer, size, freq, flags);
|
Audio::AudioStream *stream = Audio::makeRawStream(buffer, size, freq, flags);
|
||||||
|
|
|
@ -94,8 +94,7 @@ void AGOSEngine::loadZone(uint16 zoneNum, bool useError) {
|
||||||
|
|
||||||
vpe->sfxFile = NULL;
|
vpe->sfxFile = NULL;
|
||||||
|
|
||||||
if ((getPlatform() == Common::kPlatformAmiga || getPlatform() == Common::kPlatformAtariST) &&
|
if (getGameType() == GType_ELVIRA2) {
|
||||||
getGameType() == GType_ELVIRA2) {
|
|
||||||
// A singe sound file is used for Amiga and AtariST versions
|
// A singe sound file is used for Amiga and AtariST versions
|
||||||
if (loadVGASoundFile(1, 3)) {
|
if (loadVGASoundFile(1, 3)) {
|
||||||
vpe->sfxFile = _block;
|
vpe->sfxFile = _block;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue