waveInUnprepareHeader() private method

private waveInUnprepareHeader ( IntPtr hWaveIn, WaveHdr &lpWaveInHdr, int uSize ) : int
hWaveIn System.IntPtr
lpWaveInHdr WaveHdr
uSize int
return int
Example #1
0
 public void Close()
 {
     WaveInRecorder.ThrowOnError(WaveNative.waveInUnprepareHeader(m_WaveIn, ref m_Header, Marshal.SizeOf(m_Header)));
     m_HeaderHandle.Free();
     m_Header.lpData = IntPtr.Zero;
     m_HeaderDataHandle.Free();
 }
Example #2
0
 public void Dispose()
 {
     if (m_Header.lpData != IntPtr.Zero)
     {
         WaveNative.waveInUnprepareHeader(m_WaveIn, ref m_Header, Marshal.SizeOf(m_Header));
         m_HeaderHandle.Free();
         m_Header.lpData = IntPtr.Zero;
     }
     m_RecordEvent.Close();
     if (m_HeaderDataHandle.IsAllocated)
     {
         m_HeaderDataHandle.Free();
     }
     GC.SuppressFinalize(this);
 }