diff --git a/app/musicmuster.py b/app/musicmuster.py index 64a0f7d..7322759 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -1110,6 +1110,10 @@ class Window(QMainWindow, Ui_MainWindow): log.error("musicmuster.play_next(): no path for next track") return + # TODO temporary measure to help isolate issue #223 + 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) @@ -1158,16 +1162,11 @@ class Window(QMainWindow, Ui_MainWindow): self.playing = True # Disable play next controls - log.error("catch return key") self.catch_return_key = True self.show_status_message("Play controls: Disabled", 0) # Notify model - log.error("Pause before calling active_proxy_model().current_track_started()") - sleep(2) self.active_proxy_model().current_track_started() - sleep(2) - log.error("Pause finished after calling active_proxy_model().current_track_started()") # Update headers log.debug("update headers") @@ -1550,6 +1549,11 @@ class Window(QMainWindow, Ui_MainWindow): time_to_fade = track_sequence.now.fade_at - playtime time_to_silence = track_sequence.now.silence_at - playtime + # TODO working on 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) diff --git a/app/playlistmodel.py b/app/playlistmodel.py index aea00a2..cd45ee4 100644 --- a/app/playlistmodel.py +++ b/app/playlistmodel.py @@ -272,7 +272,6 @@ class PlaylistModel(QAbstractTableModel): return # Check for OBS scene change - # TODO: log.error used to debug #223 - change to log.debug later log.debug("Call OBS scene change") self.obs_scene_change(row_number)