public ALCapture(AudioCaptureOptions options) { mutex.WaitOne(); usingResource++; if (usingResource == 1) { // opens the default device. _device = AlNative.alcCaptureOpenDevice(null, (uint)options.SampleRate, AlNative.AL_FORMAT_MONO16, 128); checkAlcError(); } mutex.ReleaseMutex(); }