MCPcopy Create free account
hub / github.com/devkitPro/libctru / DSP_UnloadComponent

Function DSP_UnloadComponent

libctru/source/services/dsp.c:211–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211Result DSP_UnloadComponent(void)
212{
213 if (!dspComponentLoaded)
214 return 0;
215
216 dspComponentLoaded = false;
217
218 Result ret = 0;
219 u32* cmdbuf = getThreadCommandBuffer();
220 cmdbuf[0] = IPC_MakeHeader(0x12,0,0);
221 if (R_FAILED(ret = svcSendSyncRequest(dspHandle))) return ret;
222 return cmdbuf[1];
223}
224
225Result DSP_RegisterInterruptEvents(Handle handle, u32 interrupt, u32 channel)
226{

Callers 3

dspInitFunction · 0.85
dspExitFunction · 0.85
aptDspSleepFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected