aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie/vdx.cpp
diff options
context:
space:
mode:
authorScott Thomas2011-04-07 23:36:17 +0930
committerScott Thomas2011-04-07 23:38:35 +0930
commit7c39b844b8f635b8267ce50d22e74090e355ff0e (patch)
tree59e6d10e7f362bb8bb9c5f402f32d69584412bb4 /engines/groovie/vdx.cpp
parentd718755d73fbacf5ef31159f85a9f822ff7a3f00 (diff)
downloadscummvm-rg350-7c39b844b8f635b8267ce50d22e74090e355ff0e.tar.gz
scummvm-rg350-7c39b844b8f635b8267ce50d22e74090e355ff0e.tar.bz2
scummvm-rg350-7c39b844b8f635b8267ce50d22e74090e355ff0e.zip
GROOVIE: Add additional play-speed modes to T7G.
These two speed modes enable faster movement throughout the mansion. iOS mode matches the behavior of the official iOS release while tweaked mode additionally uses original framerate for 'teeth' animations.
Diffstat (limited to 'engines/groovie/vdx.cpp')
-rw-r--r--engines/groovie/vdx.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/groovie/vdx.cpp b/engines/groovie/vdx.cpp
index 1b4a2b7800..5569ae92ca 100644
--- a/engines/groovie/vdx.cpp
+++ b/engines/groovie/vdx.cpp
@@ -86,6 +86,11 @@ uint16 VDXPlayer::loadInternal() {
_flagEight = ((_flags & (1 << 8)) != 0);
_flagNine = ((_flags & (1 << 9)) != 0);
+ // Enable highspeed if we're not obeying fps, and not marked as special
+ // This will be disabled in chunk audio if we're actually an audio vdx
+ if ( _vm->_modeSpeed == kGroovieSpeediOS || (_vm->_modeSpeed == kGroovieSpeedTweaked && ((_flags & (1 << 15)) == 0)))
+ setOverrideSpeed(true);
+
if (_flagOnePrev && !_flagOne && !_flagEight) {
_flagSeven = true;
}
@@ -522,6 +527,11 @@ void VDXPlayer::decodeBlockDelta(uint32 offset, byte *colours, uint16 imageWidth
}
void VDXPlayer::chunkSound(Common::ReadStream *in) {
+ if (getOverrideSpeed())
+ {
+ setOverrideSpeed(false);
+ }
+
if (!_audioStream) {
_audioStream = Audio::makeQueuingAudioStream(22050, false);
Audio::SoundHandle sound_handle;