Skip to content

Commit

Permalink
Restore stereo sample support; bump sample/instrument limits
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Jan 5, 2024
1 parent 31bb429 commit a05d184
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions it_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ enum // 8bb: audio driver flags

// 8bb: do NOT change these, it will only mess things up!
#define MAX_PATTERNS 200
#define MAX_SAMPLES 100
#define MAX_INSTRUMENTS 100
#define MAX_SAMPLES 200
#define MAX_INSTRUMENTS 200
#define MAX_ORDERS 256
#define MAX_ROWS 200
#define MAX_HOST_CHANNELS 64
Expand Down
4 changes: 2 additions & 2 deletions loaders/it.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ bool LoadIT(MEMFILE *m)
if (meof(m))
continue; // This WAS a return false...will I regret this? - Dasho

bool Stereo = false; // !!(s->Flags & SMPF_STEREO); // added stereo support for custom HQ driver
bool Stereo = !!(s->Flags & SMPF_STEREO); // added stereo support
bool Compressed = !!(s->Flags & SMPF_COMPRESSED);
bool Sample16Bit = !!(s->Flags & SMPF_16BIT);
bool SignedSamples = !!(s->Cvt & 1);
Expand All @@ -324,7 +324,7 @@ bool LoadIT(MEMFILE *m)
if (!Music_AllocateSample(i, s->Length << Sample16Bit))
return false;

// added stereo support for custom HQ driver
// added stereo support
if (Stereo)
{
if (!Music_AllocateRightSample(i, s->Length << Sample16Bit))
Expand Down
2 changes: 1 addition & 1 deletion loaders/s3m.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ bool LoadS3M(MEMFILE *m)
{
if (s->OffsetInFile != 0) // 8bb: added this check
{
bool Stereo = false; // !!(s->Flags & SMPF_STEREO); // 8bb: added stereo support for custom HQ driver
bool Stereo = !!(s->Flags & SMPF_STEREO); // 8bb: added stereo support
bool Sample16Bit = !!(s->Flags & SMPF_16BIT);

uint32_t SampleBytes = s->Length << Sample16Bit;
Expand Down

0 comments on commit a05d184

Please sign in to comment.