From e3de8516c03389552066b843839332350b10f96e Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Sun, 29 Dec 2024 07:46:56 -0800 Subject: [PATCH] Send signals in playback engine that were meant to be sent --- playback.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playback.cpp b/playback.cpp index 26aeb5a..4e13572 100644 --- a/playback.cpp +++ b/playback.cpp @@ -174,6 +174,8 @@ void PlaybackInstance::Load(const char *file, int idx) { paused = false; just_started.store(true); flag_mutex.unlock(); + set_signal(PlaybackSignalStarted); + set_signal(PlaybackSignalFileChanged); } void PlaybackInstance::Unload() { if (process == nullptr) return; @@ -185,6 +187,7 @@ void PlaybackInstance::Unload() { if (buf) free(buf); buf = nullptr; UnlockAudioDevice(); + set_signal(PlaybackSignalStopped); } void PlaybackInstance::UpdateST() { bool any_changed = false;