private void Reset() { this.SetOutputListener(false); if (this.proc != null) { this.proc.Dispose(); this.proc = null; } }
private void Init() { this.proc = new WebRTCAudioProcessor(this.Logger, this.localVoice.Info.FrameSize, this.localVoice.Info.SamplingRate, this.localVoice.Info.Channels, this.outputSampleRate, this.reverseChannels); this.proc.AEC = this.AEC; this.proc.AECMobile = this.AECMobile; this.proc.AECMRoutingMode = 4; this.proc.AECStreamDelayMs = this.ReverseStreamDelayMs; this.proc.HighPass = this.HighPass; this.proc.NoiseSuppression = this.NoiseSuppression; this.proc.AGC = this.AGC; this.proc.VAD = this.VAD; this.proc.Bypass = this.Bypass; }
private void Init() { this.proc = new WebRTCAudioProcessor(this.Logger, this.localVoice.Info.FrameSize, this.localVoice.Info.SamplingRate, this.localVoice.Info.Channels, this.outputSampleRate, this.reverseChannels); #if !UNITY_EDITOR && (UNITY_IOS || UNITY_ANDROID) this.proc.AEC = false; this.proc.AECMobile = this.AEC; #else this.proc.AEC = this.AEC; this.proc.AECMobile = false; #endif this.proc.AECStreamDelayMs = this.ReverseStreamDelayMs; this.proc.HighPass = this.HighPass; this.proc.NoiseSuppression = this.NoiseSuppression; this.proc.AGC = this.AGC; this.proc.VAD = this.VAD; this.proc.Bypass = this.Bypass; }