3rdparty/hxcmod: rename channel into hxcmod_channel_t

This commit is contained in:
Matthias Ringwald 2024-12-16 22:21:00 +01:00
parent ce713b46c5
commit b7454a8757
2 changed files with 7 additions and 7 deletions

View File

@ -451,7 +451,7 @@ static int getnote( modcontext * mod, unsigned short period )
return MAXNOTES;
}
static void doFunk(channel * cptr)
static void doFunk(hxcmod_channel_t * cptr)
{
if(cptr->funkspeed)
{
@ -476,7 +476,7 @@ static void doFunk(channel * cptr)
}
}
static void worknote( note * nptr, channel * cptr,char t,modcontext * mod )
static void worknote( note * nptr, hxcmod_channel_t * cptr,char t,modcontext * mod )
{
// BK4BSTACK_CHANGE START
(void) t;
@ -1148,7 +1148,7 @@ static void worknote( note * nptr, channel * cptr,char t,modcontext * mod )
}
static void workeffect( modcontext * modctx, note * nptr, channel * cptr )
static void workeffect( modcontext * modctx, note * nptr, hxcmod_channel_t * cptr )
{
// BK4BSTACK_CHANGE START
(void) nptr;
@ -1624,7 +1624,7 @@ void hxcmod_fillbuffer(modcontext * modctx, msample * outbuffer, mssize nbsample
short finalperiod;
note *nptr;
channel *cptr;
hxcmod_channel_t *cptr;
if( modctx && outbuffer )
{
@ -1671,7 +1671,7 @@ void hxcmod_fillbuffer(modcontext * modctx, msample * outbuffer, mssize nbsample
for(c=0;c<modctx->number_of_channels;c++)
{
worknote((note*)(nptr), (channel*)(cptr),(char)(c+1),modctx);
worknote((note*)(nptr), (hxcmod_channel_t*)(cptr),(char)(c+1),modctx);
if (cptr->period != 0)
{

View File

@ -168,7 +168,7 @@ typedef struct {
muint patternloopcnt;
muint patternloopstartpoint;
} channel;
} hxcmod_channel_t;
typedef struct {
module song;
@ -203,7 +203,7 @@ typedef struct {
mulong sampleticksconst;
channel channels[NUMMAXCHANNELS];
hxcmod_channel_t channels[NUMMAXCHANNELS];
muint number_of_channels;