comparison tools/xm2jss.c @ 1315:7687412f9aef

Fix jssmod sample conversion flags storing .. urgh.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 20 Aug 2017 01:54:54 +0300
parents eb3f883f4acb
children 2772c16622bb
comparison
equal deleted inserted replaced
1314:4670907412e7 1315:7687412f9aef
659 // Write sample instrument headers 659 // Write sample instrument headers
660 for (totalSize = index = 0; index < module->ninstruments; index++) 660 for (totalSize = index = 0; index < module->ninstruments; index++)
661 if (module->instruments[index] != NULL) 661 if (module->instruments[index] != NULL)
662 { 662 {
663 JSSInstrument *inst = module->instruments[index]; 663 JSSInstrument *inst = module->instruments[index];
664 Uint8 convFlags = (inst->flags & jsf16bit) ? flags16 : flags8; 664 inst->convFlags = (inst->flags & jsf16bit) ? flags16 : flags8;
665 if (inst->data != NULL) 665 if (inst->data != NULL)
666 convFlags |= jsampHasData; 666 inst->convFlags |= jsampHasData;
667 667
668 // Write instrument header to file 668 // Write instrument header to file
669 if (!dm_fwrite_le32(outFile, inst->size) || 669 if (!dm_fwrite_le32(outFile, inst->size) ||
670 !dm_fwrite_le32(outFile, inst->loopS) || 670 !dm_fwrite_le32(outFile, inst->loopS) ||
671 !dm_fwrite_le32(outFile, inst->loopE) || 671 !dm_fwrite_le32(outFile, inst->loopE) ||