diff options
author | Paweł Kołodziejski | 2003-01-14 17:47:33 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-01-14 17:47:33 +0000 |
commit | 7bae2062f8f1f66d153ff5beac33678d1b1f977b (patch) | |
tree | cdf1b1e406237eed1483a2f3c12525f8fe6c3832 /scumm | |
parent | e0d2d9f7a04f7f1281ba70abe33f3bae6f3fc772 (diff) | |
download | scummvm-rg350-7bae2062f8f1f66d153ff5beac33678d1b1f977b.tar.gz scummvm-rg350-7bae2062f8f1f66d153ff5beac33678d1b1f977b.tar.bz2 scummvm-rg350-7bae2062f8f1f66d153ff5beac33678d1b1f977b.zip |
increased compression table for comi music, and added assert for it
svn-id: r6456
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/bundle.cpp | 2 | ||||
-rw-r--r-- | scumm/bundle.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/scumm/bundle.cpp b/scumm/bundle.cpp index 2b113565ea..7918d71f41 100644 --- a/scumm/bundle.cpp +++ b/scumm/bundle.cpp @@ -271,6 +271,7 @@ int32 Bundle::decompressVoiceSampleByIndex(int32 index, byte *comp_final, int32 comp_output = (byte *)malloc(10000); + assert(num <= 50); for (i = 0; i < num; i++) { comp_input = (byte *)malloc(_compVoiceTable[i].size); @@ -313,6 +314,7 @@ int32 Bundle::decompressMusicSampleByIndex(int32 index, int32 number, byte *comp return 0; } + assert(num <= 3361); for (i = 0; i < num; i++) { _compMusicTable[i].offset = _musicFile.readUint32BE(); _compMusicTable[i].size = _musicFile.readUint32BE(); diff --git a/scumm/bundle.h b/scumm/bundle.h index d4d2df7850..26190663c5 100644 --- a/scumm/bundle.h +++ b/scumm/bundle.h @@ -43,8 +43,9 @@ struct BundleAudioTable { int32 compDecode(byte *src, byte *dst); int32 decompressCodec(int32 codec, byte *comp_input, byte *comp_output, int32 size, int32 index, int32 & channels); CompTable _compVoiceTable[50]; - CompTable _compMusicTable[2500]; + CompTable _compMusicTable[3361]; File _voiceFile; + File _musicFile; BundleAudioTable *_bundleVoiceTable; BundleAudioTable *_bundleMusicTable; int32 _numVoiceFiles; @@ -59,7 +60,6 @@ public: Bundle(); ~Bundle(); - File _musicFile; void initializeImcTables(); bool openVoiceFile(const char *filename, const char *directory); bool openMusicFile(const char *filename, const char *directory); |