VOYEUR: Fix playback of audio events on VCR, thanks to Bakhtosh

This commit is contained in:
Paul Gilbert 2017-08-06 22:58:09 -04:00
parent 0338733d4b
commit ed04ef4929

View File

@ -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();