aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/movie.h
diff options
context:
space:
mode:
authorBenjamin Haisch2008-09-22 20:55:26 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:07 +0100
commit02e2b78e5c2e1f63668d32183a2ba5d2b57c4031 (patch)
tree06f3eee528613fcf762c6cac58e7fab5bea7638b /engines/toltecs/movie.h
parent3acd7871450d62e34a15bbad8f467060cb64bade (diff)
downloadscummvm-rg350-02e2b78e5c2e1f63668d32183a2ba5d2b57c4031.tar.gz
scummvm-rg350-02e2b78e5c2e1f63668d32183a2ba5d2b57c4031.tar.bz2
scummvm-rg350-02e2b78e5c2e1f63668d32183a2ba5d2b57c4031.zip
TOLTECS: Added sound to the movie player (finally). Still TODO: Ability to abort movies.
Diffstat (limited to 'engines/toltecs/movie.h')
-rw-r--r--engines/toltecs/movie.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/toltecs/movie.h b/engines/toltecs/movie.h
index 9ab5435121..40b1f2ea27 100644
--- a/engines/toltecs/movie.h
+++ b/engines/toltecs/movie.h
@@ -47,16 +47,23 @@ namespace Toltecs {
class MoviePlayer {
public:
- MoviePlayer(ToltecsEngine *vm);
- ~MoviePlayer();
+ MoviePlayer(ToltecsEngine *vm);
+ ~MoviePlayer();
void playMovie(uint resIndex);
protected:
- ToltecsEngine *_vm;
+ ToltecsEngine *_vm;
+ Audio::AppendableAudioStream *_audioStream;
+ Audio::SoundHandle _audioStreamHandle;
+
+ uint32 _chunkCount, _frameCount, _lastPrefetchOfs;
+ uint32 _soundChunkFramesLeft, _framesPerSoundChunk;
void unpackPalette(byte *source, byte *dest, int elemCount, int elemSize);
void unpackRle(byte *source, byte *dest);
+
+ void fetchAudioChunks();
};