internal void SetCaptureDevice(ECaptureType captureType) { if (this.captureType != captureType) { this.captureType = captureType; StopListen(); SetupWasapiCapture(); } }
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(); }
public void SwitchCaptureType(ECaptureType captureType) { if (this.captureType != captureType) { this.captureType = captureType; StopListen(); SetupWasapiCapture(); StartListen(); } }
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; } }
private void ToggleCaptureType() { if (captureType == ECaptureType.Loopback) { captureType = ECaptureType.Microphone; } else { captureType = ECaptureType.Loopback; } wasAPIAudio.SwitchCaptureType(captureType); }