Mercurial > hg > dmlib
comparison minijss/jloadxm.c @ 1260:94e9444b0fa7
Only initialize defpannings up to nchannels.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 10 Mar 2015 11:49:38 +0200 |
parents | 8e854dfee26d |
children | c2000337ac3f |
comparison
equal
deleted
inserted
replaced
1259:8e854dfee26d | 1260:94e9444b0fa7 |
---|---|
1052 | 1052 |
1053 if ((xmH.flags & 1) == 0) | 1053 if ((xmH.flags & 1) == 0) |
1054 module->defFlags |= jmdfAmigaPeriods; | 1054 module->defFlags |= jmdfAmigaPeriods; |
1055 | 1055 |
1056 // Setup the default pannings | 1056 // Setup the default pannings |
1057 for (index = 0; index < jsetNChannels; index++) | 1057 for (index = 0; index < module->nchannels; index++) |
1058 module->defPanning[index] = jchPanMiddle; | 1058 module->defPanning[index] = jchPanMiddle; |
1059 | 1059 |
1060 // Load rest of the module | 1060 // Load rest of the module |
1061 switch (xmH.version) | 1061 switch (xmH.version) |
1062 { | 1062 { |