コード例 #1
0
ファイル: audin.c プロジェクト: NecroGankedd/libnx
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);
    }
}
コード例 #2
0
ファイル: AccountLayout.cpp プロジェクト: XorTroll/Goldleaf
 void AccountLayout::CleanData()
 {
     if(this->uid != 0)
     {
         this->uid = 0;
         serviceClose(&this->prf.s);
         free(this->pbase);
         free(this->udata);
         if(this->pred != NULL) this->pred->Close();
         this->pred = NULL;
     }
 }
コード例 #3
0
ファイル: fsldr.c プロジェクト: NecroGankedd/libnx
void fsldrExit(void) {
    if (atomicDecrement64(&g_fsldrRefCnt) == 0)
        serviceClose(&g_fsldrSrv);
}
コード例 #4
0
ファイル: fs.c プロジェクト: NecroGankedd/libnx
// IDirectory implementation
void fsDirClose(FsDir* d) {
    serviceClose(&d->s);
}
コード例 #5
0
ファイル: fs.c プロジェクト: NecroGankedd/libnx
void fsFileClose(FsFile* f) {
    serviceClose(&f->s);
}
コード例 #6
0
ファイル: fs.c プロジェクト: NecroGankedd/libnx
void fsFsClose(FsFileSystem* fs) {
    serviceClose(&fs->s);
}
コード例 #7
0
ファイル: fs.c プロジェクト: NecroGankedd/libnx
void fsExit(void)
{
    if (atomicDecrement64(&g_refCnt) == 0)
        serviceClose(&g_fsSrv);
}
コード例 #8
0
ファイル: fs.c プロジェクト: NecroGankedd/libnx
void fsSaveDataIteratorClose(FsSaveDataIterator* s) {
    serviceClose(&s->s);
}
コード例 #9
0
ファイル: fs.c プロジェクト: NecroGankedd/libnx
void fsStorageClose(FsStorage* s) {
    serviceClose(&s->s);
}
コード例 #10
0
 virtual ~MitMSession() {
     serviceClose(&forward_service);
 }