Ejemplo n.º 1
0
        protected override void OnDispose()
        {
            OpenALSoundWorld.criticalSection.Enter();

            if (alCaptureDevice != IntPtr.Zero)
            {
                Alc.alcCaptureCloseDevice(alCaptureDevice);
                alCaptureDevice = IntPtr.Zero;
            }

            OpenALSoundWorld.criticalSection.Leave();

            base.OnDispose();
        }