aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/pink/objects/actions/action_talk.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/pink/objects/actions/action_talk.cpp b/engines/pink/objects/actions/action_talk.cpp
index 2144d8a8de..1ea29377d9 100644
--- a/engines/pink/objects/actions/action_talk.cpp
+++ b/engines/pink/objects/actions/action_talk.cpp
@@ -61,9 +61,7 @@ void ActionTalk::pause(bool paused) {
void ActionTalk::onStart() {
ActionLoop::onStart();
- //sound balance is calculated different than in ActionSfx(probably a bug in original)
- // 30.0 - x * -0.0625 disasm (0 - 100)
- int8 balance = (_decoder.getCenter().x * 396875 / 1000000) - 127;
+ int8 balance = (_decoder.getCenter().x * 51 - 16160) / 320;
_sound.play(_actor->getPage()->getResourceStream(_vox), Audio::Mixer::kSpeechSoundType, 100, balance);
}