Esempio n. 1
0
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);
    }
}
Esempio n. 2
0
void fsldrExit(void) {
    if (atomicDecrement64(&g_fsldrRefCnt) == 0)
        serviceClose(&g_fsldrSrv);
}
Esempio n. 3
0
void smMitMExit(void) {
    if (atomicDecrement64(&g_refCnt) == 0) {
        svcCloseHandle(g_smMitmHandle);
        g_smMitmHandle = INVALID_HANDLE;
    }
}
Esempio n. 4
0
void fsExit(void)
{
    if (atomicDecrement64(&g_refCnt) == 0)
        serviceClose(&g_fsSrv);
}