aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2022-10-17 22:42:00 +0200
committerspicyjpeg <thatspicyjpeg@gmail.com>2022-10-17 22:42:00 +0200
commit2f100c78c0f12b56bcd73c203e6216d415d9f772 (patch)
tree932b600b32b53a47727dc9a898417ec12793fac7 /examples
parent8770122c970eeedb145ee903e2243b7d4a18605b (diff)
downloadpsn00bsdk-2f100c78c0f12b56bcd73c203e6216d415d9f772.tar.gz
Remove interrupt disabling calls in psxcd callback APIs
Diffstat (limited to 'examples')
-rw-r--r--examples/cdrom/cdxa/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/cdrom/cdxa/main.c b/examples/cdrom/cdxa/main.c
index 4921658..93cf01a 100644
--- a/examples/cdrom/cdxa/main.c
+++ b/examples/cdrom/cdxa/main.c
@@ -349,7 +349,9 @@ int main(int argc, const char* argv[])
xa_loc = file.pos;
/* Hook XA callback function to CdReadyCallback (for auto stop/loop */
+ EnterCriticalSection();
CdReadyCallback(xa_callback);
+ ExitCriticalSection();
/* Set CD mode for XA streaming (2x speed, send XA to SPU, enable filter */
i = CdlModeSpeed|CdlModeRT|CdlModeSF;