Send signals in playback engine that were meant to be sent

This commit is contained in:
Zachary Hall 2024-12-29 07:46:56 -08:00
parent 39fcf9f280
commit e3de8516c0

View file

@ -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;