diff options
author | Matthew Hoops | 2012-01-07 00:20:27 -0500 |
---|---|---|
committer | Willem Jan Palenstijn | 2012-02-23 22:48:18 +0100 |
commit | 8812f885bc95f0e4af05c333780eb77a8c2eaa19 (patch) | |
tree | d9f434b6254b3bb943256328f6242dcdaec23717 /engines/sword2/function.cpp | |
parent | df21e72fe22132a802856bccc5f4bba27e4d3c17 (diff) | |
download | scummvm-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.cpp | 4 |
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); |