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

Function CSND_ExecuteCommands

libctru/source/services/csnd.c:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static Result CSND_ExecuteCommands(u32 offset)
59{
60 Result ret=0;
61 u32 *cmdbuf = getThreadCommandBuffer();
62
63 cmdbuf[0] = IPC_MakeHeader(0x3,1,0); // 0x30040
64 cmdbuf[1] = offset;
65
66 if(R_FAILED(ret = svcSendSyncRequest(csndHandle)))return ret;
67
68 return (Result)cmdbuf[1];
69}
70
71static Result CSND_AcquireSoundChannels(u32* channelMask)
72{

Callers 1

csndExecCmdsFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected