aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/avi_surface.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-07-23 11:38:39 -0400
committerPaul Gilbert2016-07-23 11:38:39 -0400
commit71b76acc630af3537b7379be24d59d38326f2606 (patch)
treeedd15fee35901cb1697f298481b14ff47c5c1b65 /engines/titanic/support/avi_surface.h
parent9c5f3c305a5edcc60d0415b92fa4dfc533af8918 (diff)
downloadscummvm-rg350-71b76acc630af3537b7379be24d59d38326f2606.tar.gz
scummvm-rg350-71b76acc630af3537b7379be24d59d38326f2606.tar.bz2
scummvm-rg350-71b76acc630af3537b7379be24d59d38326f2606.zip
TITANIC: Fixes and simplification of AVISurface
Diffstat (limited to 'engines/titanic/support/avi_surface.h')
-rw-r--r--engines/titanic/support/avi_surface.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/titanic/support/avi_surface.h b/engines/titanic/support/avi_surface.h
index dfd4c59267..4372757bc6 100644
--- a/engines/titanic/support/avi_surface.h
+++ b/engines/titanic/support/avi_surface.h
@@ -52,8 +52,6 @@ class AVISurface {
private:
AVIDecoder *_decoders[2];
CVideoSurface *_videoSurface;
- int _currentPos;
- int _priorFrame;
CMovieRangeInfoList _movieRangeInfo;
int _streamCount;
Graphics::ManagedSurface *_movieFrameSurface[2];
@@ -69,9 +67,9 @@ private:
void setupDecompressor();
protected:
/**
- * Change the frame with ??? checking
+ * Start playback at the specified frame
*/
- virtual bool changeFrame(int frameNumber);
+ virtual bool startAtFrame(int frameNumber);
/**
* Seeks to a given frame number in the video
@@ -80,7 +78,6 @@ protected:
public:
CSoundManager *_soundManager;
bool _hasAudio;
- bool _isPlaying;
double _frameRate;
public:
AVISurface(const CResourceKey &key);
@@ -107,6 +104,11 @@ public:
virtual void stop();
/**
+ * Return true if a video is currently playing
+ */
+ virtual bool isPlaying() const { return _decoders[0]->isPlaying(); }
+
+ /**
* Handle any movie events relevent for the frame
*/
virtual bool handleEvents(CMovieEventList &events);