aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v8.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-02-09 08:05:23 +0000
committerPaweł Kołodziejski2004-02-09 08:05:23 +0000
commitd1b74aa7ccb607975d26ea2a4b5914e1777bfc0d (patch)
tree445fefd3868dad93c5cd20529554689b67f2b94f /scumm/script_v8.cpp
parentbbc9d84e2917951e12d0f78d61e03744681ad4f6 (diff)
downloadscummvm-rg350-d1b74aa7ccb607975d26ea2a4b5914e1777bfc0d.tar.gz
scummvm-rg350-d1b74aa7ccb607975d26ea2a4b5914e1777bfc0d.tar.bz2
scummvm-rg350-d1b74aa7ccb607975d26ea2a4b5914e1777bfc0d.zip
added talkVolume, and changed talkPan call method
svn-id: r12790
Diffstat (limited to 'scumm/script_v8.cpp')
-rw-r--r--scumm/script_v8.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp
index a5936ccf5c..f455df3a25 100644
--- a/scumm/script_v8.cpp
+++ b/scumm/script_v8.cpp
@@ -1078,9 +1078,8 @@ void ScummEngine_v8::o8_actorOps() {
a->moving &= ~MF_FROZEN;
break;
case 0x87: // SO_ACTOR_VOLUME Set volume of actor speech
- // TODO - implement this!
- i = pop();
- warning("o8_actorOps: setActorVolume(%d) not implemented", i);
+ a->talkVolume = pop();
+ _imuseDigital->setVolume(kTalkSoundID, a->talkVolume);
break;
case 0x88: // SO_ACTOR_FREQUENCY Set frequency of actor speech
a->talkFrequency = pop();
@@ -1088,14 +1087,8 @@ void ScummEngine_v8::o8_actorOps() {
case 0x89: // SO_ACTOR_PAN
// 0 = left, 64 = middle, 127 = right.
a->talkPan = pop();
-
- // If the actor is talking at the moment, adjust the panning
- // on the current talk channel handle. (If the handle is 0,
- // setChannelPan() won't do anything.)
-
if (_actorToPrintStrFor == a->number) {
- if (_sound->isSoundRunning(kTalkSoundID))
- _imuseDigital->parseScriptCmds(12, 0x700, kTalkSoundID, a->talkPan, 0, 0, 0, 0);
+ _imuseDigital->setPan(kTalkSoundID, a->talkPan);
}
break;