flash · 349927
ldr r0, =ZLibBuffer @ Uncompress module@ ldr r1, =ZLibBufferLenmov r1,r3, lsl #2 bl uncompress
int uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); Decompresses the source buffer into the destination buffer. sourceLen is the byte length of the source buffer. Upon entry, destLen is the total size of the destination buffer, which must be large enough to hold the entire uncompressed data. (The size of the uncompressed data must have been saved previously by the compressor and transmitted to the decompressor by some mechanism outside the scope of this compression library.) Upon exit, destLen is the actual size of the uncompressed buffer. This function can be used to decompress a whole file at once if the input file is mmap'ed. uncompress returns Z_OK if success, Z_MEM_ERROR if there was not enough memory, Z_BUF_ERROR if there was not enough room in the output buffer, or Z_DATA_ERROR if the input data was corrupted.
if ((state->wrap & 2) && hold == 0x8b1f) { /* gzip header */
if (hold == 0x8b1f) { /* gzip header */
If you've got a chance to send me a beta so that I also can check it, probably I can help a little more
Err, can you PM me your e-mail address?
I got the Terminator theme mixed in with MM theme [...]
Upon exit, destLen is the actual size of the uncompressed buffer.
Can you guess what went wrong yet? That's right I placed the size of the buffer into a variable at the start but everytime it loaded a module it would write over it with the actual size of teh uncompressed buffer. So after a smaller sized module is loaded it starts thinking the buffer is too small and fails.
Said that, I'd love to receive the current beta anyway
I was actually going to send you a demo showing the music problem based on your xm7 example anyway. I will leave Flash to send you the latest beta of MMLL.
One last question for SpaceFractal: are you using MilkyTracker to save the final version of the XMs or not? Because that problem with SkaleTracker is still in the 1.00 version of libXM7 and won't go away before next library release...