From 10ac02c57f471a6efca43c0bc8b8b9c1fb73179b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= <s@saghul.net>
Date: Wed, 14 Apr 2021 10:35:09 +0200
Subject: [PATCH] Enable field trial to enable Opus RED

---
 main.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/main.js b/main.js
index 2c6dc3e..a294ba4 100644
--- a/main.js
+++ b/main.js
@@ -34,6 +34,9 @@ app.commandLine.appendSwitch('disable-site-isolation-trials');
 // https://github.com/electron/electron/issues/19880
 app.commandLine.appendSwitch('disable-features', 'IOSurfaceCapturer');
 
+// Enable Opus RED field trial.
+app.commandLine.appendSwitch('force-fieldtrials', 'WebRTC-Audio-Red-For-Opus/Enabled/');
+
 // Needed until robot.js is fixed: https://github.com/octalmage/robotjs/issues/580
 app.allowRendererProcessReuse = false;
 
-- 
GitLab