diff options
author | Max Horn | 2003-05-20 11:56:36 +0000 |
---|---|---|
committer | Max Horn | 2003-05-20 11:56:36 +0000 |
commit | 8d1110bfee983ad8e28f67564688eea872d8d4c1 (patch) | |
tree | f305238feee60a02661677e1ee4d1a3dc5d2a392 /scumm/bundle.h | |
parent | e420517d027ad7d961088a27272eef939bb9e103 (diff) | |
download | scummvm-rg350-8d1110bfee983ad8e28f67564688eea872d8d4c1.tar.gz scummvm-rg350-8d1110bfee983ad8e28f67564688eea872d8d4c1.tar.bz2 scummvm-rg350-8d1110bfee983ad8e28f67564688eea872d8d4c1.zip |
init all Bundle members properly; make _voiceFile/_musicFile protected
svn-id: r7718
Diffstat (limited to 'scumm/bundle.h')
-rw-r--r-- | scumm/bundle.h | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/scumm/bundle.h b/scumm/bundle.h index 9f4d48f0ac..7bcb8b27f4 100644 --- a/scumm/bundle.h +++ b/scumm/bundle.h @@ -28,20 +28,18 @@ class Bundle { private: -struct CompTable { - int32 offset; - int32 size; - int32 codec; -}; - -struct BundleAudioTable { - char filename[13]; - int32 size; - int32 offset; -}; - - int32 compDecode(byte *src, byte *dst); - int32 decompressCodec(int32 codec, byte *comp_input, byte *comp_output, int32 size); + struct CompTable { + int32 offset; + int32 size; + int32 codec; + }; + + struct BundleAudioTable { + char filename[13]; + int32 size; + int32 offset; + }; + CompTable *_compVoiceTable; CompTable *_compMusicTable; BundleAudioTable *_bundleVoiceTable; @@ -54,15 +52,21 @@ struct BundleAudioTable { byte _destImcTable[93]; uint32 _destImcTable2[5697]; + File _voiceFile; + File _musicFile; + + int32 compDecode(byte *src, byte *dst); + int32 decompressCodec(int32 codec, byte *comp_input, byte *comp_output, int32 size); + public: - Bundle(); - ~Bundle(); + Bundle(); + ~Bundle(); - File _musicFile; - File _voiceFile; void initializeImcTables(); bool openVoiceFile(const char *filename, const char *directory); bool openMusicFile(const char *filename, const char *directory); + void closeVoiceFile() { _voiceFile.close(); } + void closeMusicFile() { _musicFile.close(); } int32 decompressVoiceSampleByName(char *name, byte **comp_final); int32 decompressVoiceSampleByIndex(int32 index, byte **comp_final); int32 decompressMusicSampleByName(char *name, int32 number, byte *comp_final); |