PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
s_q.c
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
11
#include "libspu2_internal.h"
12
13
void
SpuQuit(
void
)
14
{
15
if
( _spu_isCalled == 1 )
16
{
17
#ifndef LIB_1300
18
// Added in OSDSND 110U
19
int
v0[2];
20
#endif
21
22
_spu_isCalled = 0;
23
CpuDisableIntr
();
24
_spu_transferCallback = 0;
25
_spu_IRQCallback = 0;
26
_SpuDataCallback(0);
27
_SpuAutoDMACallback(0);
28
#ifndef LIB_1300
29
// Added in OSDSND 110U
30
ReleaseIntrHandler
(IOP_IRQ_DMA_SPU2);
31
ReleaseIntrHandler
(IOP_IRQ_DMA_SPU);
32
ReleaseIntrHandler
(IOP_IRQ_SPU);
33
DisableIntr
(IOP_IRQ_DMA_SPU2, v0);
34
DisableIntr
(IOP_IRQ_DMA_SPU, v0);
35
DisableIntr
(IOP_IRQ_SPU, v0);
36
#endif
37
CpuEnableIntr
();
38
}
39
}
CpuEnableIntr
int CpuEnableIntr()
Definition
intrman.c:250
ReleaseIntrHandler
int ReleaseIntrHandler(int irq)
Definition
intrman.c:167
CpuDisableIntr
int CpuDisableIntr()
Definition
intrman.c:238
DisableIntr
int DisableIntr(int irq, int *res)
Definition
intrman.c:395
iop
sound
libspu2
src
s_q.c
Generated on Tue Feb 11 2025 21:35:59 for PS2SDK by
1.12.0