From 4879f7600ca31bbeae4faab1419fb949b4e2e775 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Mon, 18 Jun 2018 22:33:30 +0300 Subject: PINK: fix ActionTalk sound balance. Thanks Henke37 for bugreport --- engines/pink/objects/actions/action_talk.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines/pink/objects') 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); } -- cgit v1.2.3