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

Function CSND_AcquireSoundChannels

libctru/source/services/csnd.c:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static Result CSND_AcquireSoundChannels(u32* channelMask)
72{
73 Result ret=0;
74 u32 *cmdbuf = getThreadCommandBuffer();
75
76 cmdbuf[0] = IPC_MakeHeader(0x5,0,0); // 0x50000
77
78 if(R_FAILED(ret = svcSendSyncRequest(csndHandle)))return ret;
79
80 *channelMask = cmdbuf[2];
81
82 return (Result)cmdbuf[1];
83}
84
85static Result CSND_ReleaseSoundChannels(void)
86{

Callers 1

csndInitFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected