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
1212 #endif
1313 #include "ft2_replayer.h"
1414
15−#define PROG_VER_STR "1.54"
15+#define PROG_VER_STR "1.55"
1616
1717 // do NOT change these! It will only mess things up...
1818
src/ft2_replayer.c+10−1
@@ -3127,11 +3127,20 @@ void resetReplayerState(void) · 3126 unmodified lines
31273127 song.pBreakPos = 0;
31283128 song.pBreakFlag = false;
31293129
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)
31303139 if (songPlaying)
31313140 {
31323141 song.globalVolume = 64;
31333142
3134− channel_t *ch = channel;
3143+ ch = channel;
31353144 for (int32_t i = 0; i < song.numChannels; i++, ch++)
31363145 ch->status |= IS_Vol;
31373146 }

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