mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
8ec8f65d5f
The movie player would use OSystem::getMillis to check the elapsed playing time to keep audio and video in sync. This would go wrong when the game was paused during movie playback, as the player would try to make up for the pause time, fast forwarding the movie and breaking A/V sync. This commit improves this by using Engine::getTotalPlayTime, which subtracts pause time, and Mixer::getElapsedTime, which returns the actual length of audio played. The player seems to restart later than the audio when unpausing, so it still catches up for about 10 frames, but it's not as bad as before and it does not lose A/V sync. |
||
---|---|---|
.. | ||
configure.engine | ||
console.cpp | ||
console.h | ||
credits.pl | ||
database.cpp | ||
database.h | ||
detection_tables.h | ||
detection.cpp | ||
detection.h | ||
graphics.cpp | ||
graphics.h | ||
made.cpp | ||
made.h | ||
metaengine.cpp | ||
module.mk | ||
music.cpp | ||
music.h | ||
pmvplayer.cpp | ||
pmvplayer.h | ||
POTFILES | ||
redreader.cpp | ||
redreader.h | ||
resource.cpp | ||
resource.h | ||
screen.cpp | ||
screen.h | ||
screenfx.cpp | ||
screenfx.h | ||
script.cpp | ||
script.h | ||
scriptfuncs.cpp | ||
scriptfuncs.h | ||
sound.cpp | ||
sound.h |