瀏覽代碼

feat(HDAudio): Initial implementation.

master
Mihai-Andrei Uscat 4 年之前
父節點
當前提交
dcd073b407
共有 3 個檔案被更改,包括 18 行新增0 行删除
  1. 3
    0
      config.js
  2. 1
    0
      react/features/base/config/configWhitelist.js
  3. 14
    0
      react/features/base/lib-jitsi-meet/actions.js

+ 3
- 0
config.js 查看文件

125
     // Enables support for opus-red (redundancy for Opus).
125
     // Enables support for opus-red (redundancy for Opus).
126
     // enableOpusRed: false,
126
     // enableOpusRed: false,
127
 
127
 
128
+    // Enables HD audio quality (but also disables echo cancellation, noise suppression and AGC).
129
+    // enableHdAudio: false,
130
+
128
     // Video
131
     // Video
129
 
132
 
130
     // Sets the preferred resolution (height) for local video. Defaults to 720.
133
     // Sets the preferred resolution (height) for local video. Defaults to 720.

+ 1
- 0
react/features/base/config/configWhitelist.js 查看文件

104
     'e2eping',
104
     'e2eping',
105
     'enableDisplayNameInStats',
105
     'enableDisplayNameInStats',
106
     'enableEmailInStats',
106
     'enableEmailInStats',
107
+    'enableHdAudio',
107
     'enableIceRestart',
108
     'enableIceRestart',
108
     'enableInsecureRoomNameWarning',
109
     'enableInsecureRoomNameWarning',
109
     'enableLayerSuspension',
110
     'enableLayerSuspension',

+ 14
- 0
react/features/base/lib-jitsi-meet/actions.js 查看文件

42
     return (dispatch: Dispatch<any>, getState: Function): void => {
42
     return (dispatch: Dispatch<any>, getState: Function): void => {
43
         const state = getState();
43
         const state = getState();
44
         const config = state['features/base/config'];
44
         const config = state['features/base/config'];
45
+        const { enableHdAudio } = config;
45
 
46
 
46
         if (!config) {
47
         if (!config) {
47
             throw new Error('Cannot init lib-jitsi-meet without config');
48
             throw new Error('Cannot init lib-jitsi-meet without config');
48
         }
49
         }
49
 
50
 
51
+        if (enableHdAudio) {
52
+            Object.assign(config, {
53
+                ...config,
54
+                channelCount: 2,
55
+                disableAP: true,
56
+                enableNoAudioDetection: false,
57
+                enableNoisyMicDetection: false,
58
+                enableTalkWhileMuted: false,
59
+                opusMaxAverageBitrate: 510000,
60
+                stereo: true
61
+            });
62
+        }
63
+
50
         dispatch({ type: LIB_WILL_INIT });
64
         dispatch({ type: LIB_WILL_INIT });
51
 
65
 
52
         try {
66
         try {

Loading…
取消
儲存