aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/smush/smush_player.h
diff options
context:
space:
mode:
authorPaweł Kołodziejski2006-10-10 12:16:21 +0000
committerPaweł Kołodziejski2006-10-10 12:16:21 +0000
commite85ab4b10fedf9660efffb386512ed6a36956422 (patch)
tree2d0bbc3814009f3527d7926cd0f5674fdfcace68 /engines/scumm/smush/smush_player.h
parent89f79acb84071d56c3758281287d9c3b0c0ed545 (diff)
downloadscummvm-rg350-e85ab4b10fedf9660efffb386512ed6a36956422.tar.gz
scummvm-rg350-e85ab4b10fedf9660efffb386512ed6a36956422.tar.bz2
scummvm-rg350-e85ab4b10fedf9660efffb386512ed6a36956422.zip
now SmushPlayer is class created once same as SmushMixer while scumm engine creation. this allow finish play smush audio track finished to the end instead immediately stopped as it was happen before
svn-id: r24263
Diffstat (limited to 'engines/scumm/smush/smush_player.h')
-rw-r--r--engines/scumm/smush/smush_player.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/scumm/smush/smush_player.h b/engines/scumm/smush/smush_player.h
index 455f1414b9..34728b9e4f 100644
--- a/engines/scumm/smush/smush_player.h
+++ b/engines/scumm/smush/smush_player.h
@@ -73,6 +73,7 @@ private:
bool _initDone;
int _speed;
bool _outputSound;
+ bool _endOfFile;
byte *_dst;
bool _updateNeeded;
@@ -94,10 +95,11 @@ private:
Common::Mutex _mutex;
public:
- SmushPlayer(ScummEngine_v7 *scumm, int speed);
+ SmushPlayer(ScummEngine_v7 *scumm);
~SmushPlayer();
- void play(const char *filename, int32 offset = 0, int32 startFrame = 0);
+ void play(const char *filename, int32 speed, int32 offset = 0, int32 startFrame = 0);
+ void release();
void warpMouse(int x, int y, int buttons);
protected:
@@ -115,8 +117,7 @@ protected:
private:
void parseNextFrame();
- void init();
- void release();
+ void init(int32 spped);
void setupAnim(const char *file);
void updateScreen();
void tryCmpFile(const char *filename);