Mercurial > hg > dmlib
comparison minijss/jloadjss.c @ 2472:fd02e78f6fdc
Allocate empty pattern for JSSMOD as well.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 27 Apr 2020 03:15:19 +0300 |
parents | dcf1016f3d27 |
children | 9807ae37ad69 |
comparison
equal
deleted
inserted
replaced
2471:e0f9200b94ad | 2472:fd02e78f6fdc |
---|---|
478 "Invalid orders list entry #%d value %d > %d.\n", | 478 "Invalid orders list entry #%d value %d > %d.\n", |
479 index, tmp, jssH.npatterns); | 479 index, tmp, jssH.npatterns); |
480 | 480 |
481 module->orderList[index] = (tmp == 0xffff) ? jsetNotSet : tmp; | 481 module->orderList[index] = (tmp == 0xffff) ? jsetNotSet : tmp; |
482 } | 482 } |
483 | |
484 // Allocate the empty pattern | |
485 module->patterns[jsetMaxPatterns] = jssAllocatePattern(64, module->nchannels); | |
483 | 486 |
484 // Parse the patterns | 487 // Parse the patterns |
485 for (index = 0; index < module->npatterns; index++) | 488 for (index = 0; index < module->npatterns; index++) |
486 { | 489 { |
487 JSSPattern *pattern; | 490 JSSPattern *pattern; |