]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Check interrupt first.
authorToni Wilen <twilen@winuae.net>
Thu, 2 May 2024 17:15:09 +0000 (20:15 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 2 May 2024 17:15:09 +0000 (20:15 +0300)
audio.cpp

index 20340148d0b592f7ab2af65128850d9b5ea0b232..0fd69bdbe6887e0cbd7c7d99679c3929d7cf74f3 100644 (file)
--- a/audio.cpp
+++ b/audio.cpp
@@ -1963,13 +1963,13 @@ static bool audio_state_channel2 (int nr, bool perfin)
                                cdp->intreq2 = false;
                        }
                } else {
-                       if (napnav) {
-                               setirq(nr, 32);
-                       }
                        // cycle-accurate period check was not needed, do delayed check
                        if (!cdp->irqcheck) {
                                cdp->irqcheck = isirq(nr);
                        }
+                       if (napnav) {
+                               setirq(nr, 32);
+                       }
                        if (cdp->irqcheck > 0) {
 #if DEBUG_AUDIO > 0
                                if (debugchannel (nr))