void audinExit(void) { if (atomicDecrement64(&g_refCnt) == 0) { if (g_audinBufferEventHandle != INVALID_HANDLE) { svcCloseHandle(g_audinBufferEventHandle); g_audinBufferEventHandle = INVALID_HANDLE; } g_sampleRate = 0; g_channelCount = 0; g_pcmFormat = PcmFormat_Invalid; g_deviceState = AudioInState_Stopped; serviceClose(&g_audinIAudioIn); serviceClose(&g_audinSrv); } }
void fsldrExit(void) { if (atomicDecrement64(&g_fsldrRefCnt) == 0) serviceClose(&g_fsldrSrv); }
void smMitMExit(void) { if (atomicDecrement64(&g_refCnt) == 0) { svcCloseHandle(g_smMitmHandle); g_smMitmHandle = INVALID_HANDLE; } }
void fsExit(void) { if (atomicDecrement64(&g_refCnt) == 0) serviceClose(&g_fsSrv); }