History

Clear pattern loop (E6x) counters on playback

Olav Sørensen committed 4 years ago

Commit 848dff31 parent 6de936e2 files · +11 −2Browse files

Unified · Split

2 files
  1. src/ft2_header.h +1 −1
  2. src/ft2_replayer.c +10 −1
src/ft2_header.h+1−1
@@ -12,7 +12,7 @@ · 11 unmodified lines
12#endif12#endif
13#include "ft2_replayer.h"13#include "ft2_replayer.h"
14 14
15#define PROG_VER_STR "1.54"15#define PROG_VER_STR "1.55"
16 16
17// do NOT change these! It will only mess things up...17// do NOT change these! It will only mess things up...
18 18
src/ft2_replayer.c+10−1
@@ -3127,11 +3127,20 @@ void resetReplayerState(void) · 3126 unmodified lines
3127 song.pBreakPos = 0;3127 song.pBreakPos = 0;
3128 song.pBreakFlag = false;3128 song.pBreakFlag = false;
3129 3129
3130 // reset pattern loops (E6x)
3131 channel_t *ch = channel;
3132 for (int32_t i = 0; i < song.numChannels; i++, ch++)
3133 {
3134 ch->jumpToRow = 0;
3135 ch->patLoopCounter = 0;
3136 }
3137
3138 // reset global volume (if song was playing)
3130 if (songPlaying)3139 if (songPlaying)
3131 {3140 {
3132 song.globalVolume = 64;3141 song.globalVolume = 64;
3133 3142
3134 channel_t *ch = channel;3143 ch = channel;
3135 for (int32_t i = 0; i < song.numChannels; i++, ch++)3144 for (int32_t i = 0; i < song.numChannels; i++, ch++)
3136 ch->status |= IS_Vol;3145 ch->status |= IS_Vol;
3137 }3146 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t