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;
|
paused = false;
|
||||||
just_started.store(true);
|
just_started.store(true);
|
||||||
flag_mutex.unlock();
|
flag_mutex.unlock();
|
||||||
|
set_signal(PlaybackSignalStarted);
|
||||||
|
set_signal(PlaybackSignalFileChanged);
|
||||||
}
|
}
|
||||||
void PlaybackInstance::Unload() {
|
void PlaybackInstance::Unload() {
|
||||||
if (process == nullptr) return;
|
if (process == nullptr) return;
|
||||||
|
@ -185,6 +187,7 @@ void PlaybackInstance::Unload() {
|
||||||
if (buf) free(buf);
|
if (buf) free(buf);
|
||||||
buf = nullptr;
|
buf = nullptr;
|
||||||
UnlockAudioDevice();
|
UnlockAudioDevice();
|
||||||
|
set_signal(PlaybackSignalStopped);
|
||||||
}
|
}
|
||||||
void PlaybackInstance::UpdateST() {
|
void PlaybackInstance::UpdateST() {
|
||||||
bool any_changed = false;
|
bool any_changed = false;
|
||||||
|
|
Loading…
Reference in a new issue