diff --git a/app/musicmuster.py b/app/musicmuster.py index a9d4883..1dcce5f 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -1173,6 +1173,15 @@ class Window(QMainWindow, Ui_MainWindow): log.error("musicmuster.play_next(): no path for next track") return + # Issue #223 concerns a very short pause (maybe 0.1s) sometimes + # when starting to play at track. + + # Resolution appears to be to disable timer10 for the first ten + # seconds of playback. Re-enabled tick_1000ms + + self.timer10.stop() + self.show_status_message("10ms timer disabled", 0) + # If there's currently a track playing, fade it. self.stop_playing(fade=True) @@ -1686,6 +1695,11 @@ class Window(QMainWindow, Ui_MainWindow): time_to_fade = track_sequence.now.fade_at - playtime time_to_silence = track_sequence.now.silence_at - playtime + # see play_next() and issue #223 + if playtime > 10000 and not self.timer10.isActive(): + self.timer10.start(10) + self.show_status_message("10ms timer enabled", 0) + # Elapsed time self.label_elapsed_timer.setText( helpers.ms_to_mmss(playtime)