Skip to content

Commit

Permalink
[IT] Increase the number of max-samples even further (beyond Schism) …
Browse files Browse the repository at this point in the history
…due to files exported by openMPT.
  • Loading branch information
mywave82 committed Jul 30, 2023
1 parent 145523c commit d9ee6f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playit/itload.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ OCP_INTERNAL int it_load (struct cpifaceSessionAPI_t *cpifaceSession, struct it_
int maxchan;

#define MAX_ORDERS 256
#define MAX_SAMPLES 236
#define MAX_INSTRUMENTS MAX_SAMPLES
#define MAX_SAMPLES 4000 /* Schism: 236, OpenMPT sample mode: 256 OpenMPT instrument mode 4000 */
#define MAX_INSTRUMENTS 256 /* Schism: 236, OpenMPT 256 */
#define MAX_PATTERNS 240

uint8_t ords[MAX_ORDERS];
Expand Down Expand Up @@ -163,7 +163,7 @@ OCP_INTERNAL int it_load (struct cpifaceSessionAPI_t *cpifaceSession, struct it_
}
if (hdr.nsmps>MAX_SAMPLES)
{
cpifaceSession->cpiDebug (cpifaceSession, "[IT] Too many samples\n");
cpifaceSession->cpiDebug (cpifaceSession, "[IT] Too many samples (%u > %u)\n", hdr.nsmps, MAX_SAMPLES);
return errFormStruc;
}
if (hdr.npats>MAX_PATTERNS)
Expand Down

0 comments on commit d9ee6f7

Please sign in to comment.