static void capture_free (void) { if (lpDSB2r) { lpDSB2r->Stop (); lpDSB2r->Release (); write_log (_T("SAMPLER: Parallel port sampler freed\n")); } lpDSB2r = NULL; if (lpDS2r) lpDS2r->Release (); lpDS2r = NULL; xfree (samplebuffer); samplebuffer = NULL; }
void VoiceRecord_DSound::Term() { if(m_pCaptureBuffer) m_pCaptureBuffer->Release(); if(m_pCapture) m_pCapture->Release(); if(m_hWrapEvent) DeleteObject(m_hWrapEvent); if(m_hInstDS) { FreeLibrary(m_hInstDS); m_hInstDS = NULL; } Clear(); }