aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/function.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2012-01-07 00:20:27 -0500
committerWillem Jan Palenstijn2012-02-23 22:48:18 +0100
commit8812f885bc95f0e4af05c333780eb77a8c2eaa19 (patch)
treed9f434b6254b3bb943256328f6242dcdaec23717 /engines/sword2/function.cpp
parentdf21e72fe22132a802856bccc5f4bba27e4d3c17 (diff)
downloadscummvm-rg350-8812f885bc95f0e4af05c333780eb77a8c2eaa19.tar.gz
scummvm-rg350-8812f885bc95f0e4af05c333780eb77a8c2eaa19.tar.bz2
scummvm-rg350-8812f885bc95f0e4af05c333780eb77a8c2eaa19.zip
SWORD2: Add support for PSX stream playback
Diffstat (limited to 'engines/sword2/function.cpp')
-rw-r--r--engines/sword2/function.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sword2/function.cpp b/engines/sword2/function.cpp
index 60ee6176a4..836b252d6c 100644
--- a/engines/sword2/function.cpp
+++ b/engines/sword2/function.cpp
@@ -2137,7 +2137,9 @@ int32 Logic::fnPlaySequence(int32 *params) {
// pause sfx during sequence
_vm->_sound->pauseFx();
- _moviePlayer = makeMoviePlayer(filename, _vm, _vm->_mixer, _vm->_system);
+ uint32 frameCount = Sword2Engine::isPsx() ? params[1] : 0;
+
+ _moviePlayer = makeMoviePlayer(filename, _vm, _vm->_mixer, _vm->_system, frameCount);
if (_moviePlayer && _moviePlayer->load(filename)) {
_moviePlayer->play(_sequenceTextList, _sequenceTextLines, _smackerLeadIn, _smackerLeadOut);