aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/voyeur_game.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-06 22:58:09 -0400
committerPaul Gilbert2017-08-06 22:58:09 -0400
commited04ef492994549188b98be0bae42bc32313b967 (patch)
tree237785e85cad7754badb749e9ff60489729965ba /engines/voyeur/voyeur_game.cpp
parent0338733d4b97628c2331b7b84894fdcfaf907dee (diff)
downloadscummvm-rg350-ed04ef492994549188b98be0bae42bc32313b967.tar.gz
scummvm-rg350-ed04ef492994549188b98be0bae42bc32313b967.tar.bz2
scummvm-rg350-ed04ef492994549188b98be0bae42bc32313b967.zip
VOYEUR: Fix playback of audio events on VCR, thanks to Bakhtosh
Diffstat (limited to 'engines/voyeur/voyeur_game.cpp')
-rw-r--r--engines/voyeur/voyeur_game.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/voyeur/voyeur_game.cpp b/engines/voyeur/voyeur_game.cpp
index e9591955fc..2c84a4c471 100644
--- a/engines/voyeur/voyeur_game.cpp
+++ b/engines/voyeur/voyeur_game.cpp
@@ -674,9 +674,9 @@ void VoyeurEngine::reviewTape() {
_bVoy->getBoltGroup(0x7F00);
_screen->_backgroundPage = _bVoy->boltEntry(0x7F00 +
- BLIND_TABLE[_audioVideoId])._picResource;
+ BLIND_TABLE[_audioVideoId] * 2)._picResource;
_screen->_backColors = _bVoy->boltEntry(0x7F01 +
- BLIND_TABLE[_audioVideoId])._cMapResource;
+ BLIND_TABLE[_audioVideoId] * 2)._cMapResource;
_screen->_vPort->setupViewPort(_screen->_backgroundPage);
_screen->_backColors->startFade();
@@ -688,7 +688,10 @@ void VoyeurEngine::reviewTape() {
// Play sound for the given duration
_soundManager->setVOCOffset(_voy->_vocSecondsOffset);
- _soundManager->startVOCPlay(_audioVideoId + 159);
+ Common::String filename = _soundManager->getVOCFileName(
+ _audioVideoId + 159);
+ _soundManager->startVOCPlay(filename);
+
uint32 secondsDuration = e._computerOff;
_eventsManager->getMouseInfo();