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;