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

Function csndGetState

libctru/source/services/csnd.c:581–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581Result csndGetState(u32 channel, CSND_ChnInfo* out)
582{
583 Result ret = 0;
584 channel = chnGetSharedMemIdx(channel);
585
586 if (R_FAILED(ret = CSND_UpdateInfo(true)))return ret;
587
588 memcpy(out, (const void*)&csndSharedMem[(csndOffsets[1] + channel*0xc) >> 2], 0xc);
589 //out[2] -= 0x0c000000;
590
591 return 0;
592}
593
594Result csndIsPlaying(u32 channel, u8* status)
595{

Callers 1

csndIsPlayingFunction · 0.85

Calls 2

chnGetSharedMemIdxFunction · 0.85
CSND_UpdateInfoFunction · 0.85

Tested by

no test coverage detected