Skip to content

Commit

Permalink
KYRA: Properly mark digital sfx as sfx in HoF and LoL again.
Browse files Browse the repository at this point in the history
This is a regression from e016e7d.
  • Loading branch information
Johannes Schickel committed Nov 23, 2012
1 parent 7c2f5e2 commit f5a3260
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/kyra/kyra_hof.cpp
Expand Up @@ -1448,7 +1448,7 @@ void KyraEngine_HoF::snd_playSoundEffect(int track, int volume) {

int16 vocIndex = (int16)READ_LE_UINT16(&_ingameSoundIndex[track * 2]);
if (vocIndex != -1) {
_sound->voicePlay(_ingameSoundList[vocIndex], 0, 255, true);
_sound->voicePlay(_ingameSoundList[vocIndex], 0, 255, 255, true);
} else if (_flags.platform == Common::kPlatformPC) {
if (_sound->getSfxType() == Sound::kMidiMT32)
track = track < _mt32SfxMapSize ? _mt32SfxMap[track] - 1 : -1;
Expand Down
2 changes: 1 addition & 1 deletion engines/kyra/script_tim.cpp
Expand Up @@ -736,7 +736,7 @@ int TIMInterpreter::cmd_playVocFile(const uint16 *param) {
const int volume = (param[1] * 255) / 100;

if (index < ARRAYSIZE(_vocFiles) && !_vocFiles[index].empty())
_vm->sound()->voicePlay(_vocFiles[index].c_str(), 0, volume, true);
_vm->sound()->voicePlay(_vocFiles[index].c_str(), 0, volume, 255, true);
else if (index == 7 && !_vm->gameFlags().isTalkie)
_vm->sound()->playTrack(index);
else
Expand Down

0 comments on commit f5a3260

Please sign in to comment.