Send signals in playback engine that were meant to be sent
This commit is contained in:
parent
39fcf9f280
commit
e3de8516c0
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue