mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
increased compression table for comi music, and added assert for it
svn-id: r6456
This commit is contained in:
parent
e0d2d9f7a0
commit
7bae2062f8
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user