aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_hof.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-27 14:40:37 +0000
committerJohannes Schickel2009-05-27 14:40:37 +0000
commit2bcf5c0552cf0778eb2642608134c6c0e4f3028e (patch)
tree50a6e0782d9137fd9a58ae304c4d57918a603ce3 /engines/kyra/kyra_hof.cpp
parente0a059394975b0dc9c52f3152488ee3bad0594c0 (diff)
downloadscummvm-rg350-2bcf5c0552cf0778eb2642608134c6c0e4f3028e.tar.gz
scummvm-rg350-2bcf5c0552cf0778eb2642608134c6c0e4f3028e.tar.bz2
scummvm-rg350-2bcf5c0552cf0778eb2642608134c6c0e4f3028e.zip
- Moved Sound implementation declarations to the newly added file sound_intern.h
- Added support for PC Speaker sound in all Kyra1, Kyra2 and Lands of Lore - Slight cleanup svn-id: r40939
Diffstat (limited to 'engines/kyra/kyra_hof.cpp')
-rw-r--r--engines/kyra/kyra_hof.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/kyra/kyra_hof.cpp b/engines/kyra/kyra_hof.cpp
index eabc3ecb93..7e032fb46d 100644
--- a/engines/kyra/kyra_hof.cpp
+++ b/engines/kyra/kyra_hof.cpp
@@ -1529,7 +1529,9 @@ void KyraEngine_HoF::snd_playSoundEffect(int track, int volume) {
if (_sound->getSfxType() == Sound::kMidiMT32)
track = track < _mt32SfxMapSize ? _mt32SfxMap[track] - 1 : -1;
else if (_sound->getSfxType() == Sound::kMidiGM)
- track = track < _gmSfxMapSize ? _gmSfxMap[track] - 1: -1;
+ track = track < _gmSfxMapSize ? _gmSfxMap[track] - 1 : -1;
+ else if (_sound->getSfxType() == Sound::kPCSpkr)
+ track = track < _pcSpkSfxMapSize ? _pcSpkSfxMap[track] - 1 : -1;
if (track != -1)
KyraEngine_v1::snd_playSoundEffect(track);