aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/vqa_player.h
diff options
context:
space:
mode:
authorPeter Kohaut2018-01-31 00:37:19 +0100
committerPeter Kohaut2018-02-04 17:34:43 +0100
commit6e9a340640686fe7dd95efbea34cbf3b7f4209af (patch)
treefe0adec0b85f3e2b387097c4378ce8337b731460 /engines/bladerunner/vqa_player.h
parent0300979bdd8d2ca451110d77cb8e05c84365bbec (diff)
downloadscummvm-rg350-6e9a340640686fe7dd95efbea34cbf3b7f4209af.tar.gz
scummvm-rg350-6e9a340640686fe7dd95efbea34cbf3b7f4209af.tar.bz2
scummvm-rg350-6e9a340640686fe7dd95efbea34cbf3b7f4209af.zip
BLADERUNNER: ESPER interface
Diffstat (limited to 'engines/bladerunner/vqa_player.h')
-rw-r--r--engines/bladerunner/vqa_player.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/bladerunner/vqa_player.h b/engines/bladerunner/vqa_player.h
index d276b9111c..d95f8b36a2 100644
--- a/engines/bladerunner/vqa_player.h
+++ b/engines/bladerunner/vqa_player.h
@@ -50,6 +50,7 @@ class VQAPlayer {
Common::SeekableReadStream *_s;
VQADecoder _decoder;
Audio::QueuingAudioStream *_audioStream;
+ Graphics::Surface *_surface;
int _frame;
int _frameNext;
@@ -77,7 +78,8 @@ public:
VQAPlayer(BladeRunnerEngine *vm, Graphics::Surface *surface)
: _vm(vm),
_s(nullptr),
- _decoder(surface),
+ _surface(surface),
+ _decoder(),
_audioStream(nullptr),
_frame(-1),
_frameNext(-1),
@@ -102,7 +104,7 @@ public:
bool open(const Common::String &name);
void close();
- int update(bool forceDraw = false);
+ int update(bool forceDraw = false, bool advanceFrame = true, Graphics::Surface *customSurface = nullptr);
void updateZBuffer(ZBuffer *zbuffer);
void updateView(View *view);
void updateScreenEffects(ScreenEffects *screenEffects);
@@ -116,6 +118,8 @@ public:
int getLoopBeginFrame(int loop);
int getLoopEndFrame(int loop);
+ int getFrameCount();
+
private:
void queueAudioFrame(Audio::AudioStream *audioStream);
};