diff options
author | Eugene Sandulenko | 2010-10-08 22:17:03 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-08 22:17:03 +0000 |
commit | 741e7c7f5ec800bf0209e93da3d6f9ec2869cdb3 (patch) | |
tree | 522ff5cad30adab54e14f1c4466c240748da52b8 /graphics/video/smk_decoder.h | |
parent | 8785bce1900e8b022773274c3258b468d4aa222d (diff) | |
download | scummvm-rg350-741e7c7f5ec800bf0209e93da3d6f9ec2869cdb3.tar.gz scummvm-rg350-741e7c7f5ec800bf0209e93da3d6f9ec2869cdb3.tar.bz2 scummvm-rg350-741e7c7f5ec800bf0209e93da3d6f9ec2869cdb3.zip |
VIDEO: Factor out handleAudioTrack() to be used by Toons engine
svn-id: r53086
Diffstat (limited to 'graphics/video/smk_decoder.h')
-rw-r--r-- | graphics/video/smk_decoder.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/video/smk_decoder.h b/graphics/video/smk_decoder.h index 516fd5aab6..1745aee7d2 100644 --- a/graphics/video/smk_decoder.h +++ b/graphics/video/smk_decoder.h @@ -69,12 +69,13 @@ public: PixelFormat getPixelFormat() const { return PixelFormat::createFormatCLUT8(); } byte *getPalette() { _dirtyPalette = false; return _palette; } bool hasDirtyPalette() const { return _dirtyPalette; } + virtual void handleAudioTrack(const byte &track, const uint32 &chunkSize, const uint32 &unpackedSize); protected: Common::Rational getFrameRate() const { return _frameRate; } Common::SeekableReadStream *_fileStream; -private: +protected: void unpackPalette(); // Possible runs of blocks uint getBlockRun(int index) { return (index <= 58) ? index + 1 : 128 << (index - 59); } |