ref: 9a64c50f62a40cb0048d5156c9f22724414ba27a
parent: d1d0328232fe2d358d2e5fce19faa7d5cce10bf8
author: Olav Sørensen <olav.sorensen@live.no>
date: Wed Jul 29 15:20:30 EDT 2020
Don't touch playback counter when in "play/record pattern" mode
--- a/src/pt2_replayer.c
+++ b/src/pt2_replayer.c
@@ -977,8 +977,8 @@
uint16_t *patt;
moduleChannel_t *c;
- if (modBPM >= 32 && modBPM <= 255)
- editor.musicTime64 += musicTimeTab64[modBPM-32]; // for playback counter
+ if (editor.playMode != PLAY_MODE_PATTERN && modBPM >= 32 && modBPM <= 255)
+ editor.musicTime64 += musicTimeTab64[modBPM-32]; // for playback counter (don't increase in "play/rec pattern" mode)
if (updateUIPositions)
{
@@ -1350,7 +1350,9 @@
modHasBeenPlayed = false;
editor.songPlaying = true;
editor.didQuantize = false;
- editor.musicTime64 = 0;
+
+ if (editor.playMode != PLAY_MODE_PATTERN)
+ editor.musicTime64 = 0; // don't reset playback counter in "play/rec pattern" mode
if (audioWasntLocked)
unlockAudio();