mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 18:42:40 +00:00
IT import: fix 16-bit compressed sample crash
This commit is contained in:
parent
3e4dfb9dcf
commit
d800452e6d
1 changed files with 3 additions and 3 deletions
|
@ -212,7 +212,7 @@ bool DivEngine::loadIT(unsigned char* file, size_t len) {
|
|||
ds.noSlidesOnFirstTick=true;
|
||||
ds.rowResetsArpPos=true;
|
||||
ds.ignoreJumpAtEnd=false;
|
||||
ds.pitchSlideSpeed=4;
|
||||
ds.pitchSlideSpeed=8;
|
||||
|
||||
logV("Impulse Tracker module");
|
||||
|
||||
|
@ -627,9 +627,9 @@ bool DivEngine::loadIT(unsigned char* file, size_t len) {
|
|||
unsigned int ret=0;
|
||||
logV("decompression begin...");
|
||||
if (s->depth==DIV_SAMPLE_DEPTH_16BIT) {
|
||||
ret=it_decompress16(s->data16,s->length16,&file[reader.tell()],len-reader.tell(),(convert&4)?1:0,(flags&4)?2:1);
|
||||
ret=it_decompress16(s->data16,s->samples,&file[reader.tell()],len-reader.tell(),(convert&4)?1:0,(flags&4)?2:1);
|
||||
} else {
|
||||
ret=it_decompress8(s->data8,s->length8,&file[reader.tell()],len-reader.tell(),(convert&4)?1:0,(flags&4)?2:1);
|
||||
ret=it_decompress8(s->data8,s->samples,&file[reader.tell()],len-reader.tell(),(convert&4)?1:0,(flags&4)?2:1);
|
||||
}
|
||||
logV("got: %d",ret);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue