aboutsummaryrefslogtreecommitdiff
path: root/saga/events.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-11-26 13:28:00 +0000
committerTorbjörn Andersson2004-11-26 13:28:00 +0000
commit66b8bcd7ebb5cc53afc2a2192a8ccc9ae24ef670 (patch)
treed726675cbb9fd7b4ede8b89d8ee86d1b26f37b9e /saga/events.cpp
parent41d1be2ea8e1869b056cf09f3b82d52363aa80c1 (diff)
downloadscummvm-rg350-66b8bcd7ebb5cc53afc2a2192a8ccc9ae24ef670.tar.gz
scummvm-rg350-66b8bcd7ebb5cc53afc2a2192a8ccc9ae24ef670.tar.bz2
scummvm-rg350-66b8bcd7ebb5cc53afc2a2192a8ccc9ae24ef670.zip
Added looping background noise to the IHNM intro. I don't know if it's the
correct sound or the correct volume, but the small extension to allow the engine to start looping sounds is worthwhile enough in itself, I think. svn-id: r15895
Diffstat (limited to 'saga/events.cpp')
-rw-r--r--saga/events.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/saga/events.cpp b/saga/events.cpp
index 435256517f..f377b444d1 100644
--- a/saga/events.cpp
+++ b/saga/events.cpp
@@ -309,6 +309,11 @@ int Events::handleOneShot(EVENT *event) {
}
break;
+ case SOUND_EVENT:
+ _vm->_sound->stopSound();
+ if (event->op == EVENT_PLAY)
+ _vm->_sndRes->playSound(event->param, event->param2, event->param3 != 0);
+ break;
case VOICE_EVENT:
_vm->_sndRes->playVoice(event->param);
break;