aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects
diff options
context:
space:
mode:
authorwhiterandrek2018-06-18 22:33:30 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit4879f7600ca31bbeae4faab1419fb949b4e2e775 (patch)
tree0f4f0e0cb82f8f8cb3930f7a80b4e656be2cef3e /engines/pink/objects
parent425e034bee864fbfb47f015073f9aba1cea95cba (diff)
downloadscummvm-rg350-4879f7600ca31bbeae4faab1419fb949b4e2e775.tar.gz
scummvm-rg350-4879f7600ca31bbeae4faab1419fb949b4e2e775.tar.bz2
scummvm-rg350-4879f7600ca31bbeae4faab1419fb949b4e2e775.zip
PINK: fix ActionTalk sound balance. Thanks Henke37 for bugreport
Diffstat (limited to 'engines/pink/objects')
-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);
}