Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 public MFCapture(AudioCaptureOptions options)
 {
     IMFAttributes attribs = null;
     var           result  = MediaFactory.MFCreateDeviceSource(attribs, out _audioSource);
 }