]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Signal main thread only if dsp is configured
authorToni Wilen <twilen@winuae.net>
Sat, 13 Jan 2024 10:31:46 +0000 (12:31 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 13 Jan 2024 10:31:46 +0000 (12:31 +0200)
dsp3210/dsp_glue.cpp

index 5c9b88c526e5ccfeea09e56fc94d4b3da9ce55fe..5d9e48c540d61a12623501f38ccd4fbbb0d8f59f 100644 (file)
@@ -348,6 +348,8 @@ bool dsp_init(struct autoconfig_info *aci)
 
 void dsp_pause(int pause)
 {
-       dsp_paused = pause;
-       uae_sem_post(&pause_sem);
+       if (is_dsp_installed) {
+               dsp_paused = pause;
+               uae_sem_post(&pause_sem);
+       }
 }