internal void SetCaptureDevice(ECaptureType captureType)
 {
     if (this.captureType != captureType)
     {
         this.captureType = captureType;
         StopListen();
         SetupWasapiCapture();
     }
 }
예제 #2
0
 public WasAPIAudio(ECaptureType captureType, int spectrumSize, int minFrequency, int maxFrequency, Action <float[]> receiveAudio)
 {
     this.captureType  = captureType;
     this.spectrumSize = spectrumSize;
     this.minFrequency = minFrequency;
     this.maxFrequency = maxFrequency;
     this.receiveAudio = receiveAudio;
     SetupWasapiCapture();
 }
예제 #3
0
 public void SwitchCaptureType(ECaptureType captureType)
 {
     if (this.captureType != captureType)
     {
         this.captureType = captureType;
         StopListen();
         SetupWasapiCapture();
         StartListen();
     }
 }
예제 #4
0
 public SDAV_Window(GameWindowSettings gameWindowSettings, NativeWindowSettings nativeWindowSettings)
     : base(gameWindowSettings, nativeWindowSettings)
 {
     originalSize = nativeWindowSettings.Size;
     if (Configuration.GetStringProperty("captureType").Equals("Microphone"))
     {
         captureType = ECaptureType.Microphone;
     }
     else
     {
         captureType = ECaptureType.Loopback;
     }
 }
예제 #5
0
        private void ToggleCaptureType()
        {
            if (captureType == ECaptureType.Loopback)
            {
                captureType = ECaptureType.Microphone;
            }
            else
            {
                captureType = ECaptureType.Loopback;
            }

            wasAPIAudio.SwitchCaptureType(captureType);
        }