notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libretro: report errors and warnings as such
[pcsx_rearmed.git]
/
libpcsxcore
/
spu.c
diff --git
a/libpcsxcore/spu.c
b/libpcsxcore/spu.c
index
69d65be
..
56a1de3
100644
(file)
--- a/
libpcsxcore/spu.c
+++ b/
libpcsxcore/spu.c
@@
-24,7
+24,16
@@
#include "spu.h"
#include "psxevents.h"
#include "spu.h"
#include "psxevents.h"
-void CALLBACK SPUirq(void) {
+void CALLBACK SPUirq(int cycles_after) {
+ if (cycles_after > 0) {
+ set_event(PSXINT_SPU_IRQ, cycles_after);
+ return;
+ }
+
+ psxHu32ref(0x1070) |= SWAPu32(0x200);
+}
+
+void spuDelayedIrq() {
psxHu32ref(0x1070) |= SWAPu32(0x200);
}
psxHu32ref(0x1070) |= SWAPu32(0x200);
}