Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/channels.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@

struct Chn
{
int pattptr;
unsigned short freq;
unsigned short pulse;
unsigned char trans;
unsigned char instr;
unsigned char note;
unsigned char lastnote;
unsigned char newnote;
int pattptr;
unsigned char pattnum;
unsigned char songptr;
unsigned char repeat;
unsigned short freq;
unsigned char gate;
unsigned char wave;
unsigned short pulse;
unsigned char ptr[2];
unsigned char pulsetime;
unsigned char wavetime;
Expand All @@ -47,9 +47,9 @@ struct Chn
unsigned char newcmddata;
unsigned char tick;
unsigned char tempo;
unsigned char mute;
unsigned char advance;
unsigned char gatetimer;
bool advance;
bool mute;
};

#ifndef CHANNELS_C
Expand Down
10 changes: 5 additions & 5 deletions src/play.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void releasenote(int chnnum)

void mutechannel(int chnnum)
{
chn[chnnum].mute ^= 1;
chn[chnnum].mute = !chn[chnnum].mute;
}

bool isplaying()
Expand Down Expand Up @@ -172,7 +172,7 @@ void playroutine()
cptr->cmddata = 0;
cptr->newcommand = 0;
cptr->newcmddata = 0;
cptr->advance = 1;
cptr->advance = true;
cptr->wave = 0;
cptr->ptr[WTBL] = 0;
cptr->newnote = 0;
Expand Down Expand Up @@ -208,7 +208,7 @@ void playroutine()
break;

case PLAY_PATTERN:
cptr->advance = 0;
cptr->advance = false;
cptr->pattptr = startpattpos * 4;
cptr->pattnum = epnum[c];
if (cptr->pattptr >= (getPattlen(cptr->pattnum) * 4))
Expand Down Expand Up @@ -973,7 +973,7 @@ void playroutine_stereo()
cptr->cmddata = 0;
cptr->newcommand = 0;
cptr->newcmddata = 0;
cptr->advance = 1;
cptr->advance = true;
cptr->wave = 0;
cptr->ptr[WTBL] = 0;
cptr->newnote = 0;
Expand Down Expand Up @@ -1009,7 +1009,7 @@ void playroutine_stereo()
break;

case PLAY_PATTERN:
cptr->advance = 0;
cptr->advance = false;
cptr->pattptr = startpattpos * 4;
cptr->pattnum = epnum[c];
if (cptr->pattptr >= (getPattlen(cptr->pattnum) * 4))
Expand Down
Loading
Loading