feat(HDAudio): Initial implementation.
This commit is contained in:
parent
c12c554138
commit
dcd073b407
|
@ -125,6 +125,9 @@ var config = {
|
|||
// Enables support for opus-red (redundancy for Opus).
|
||||
// enableOpusRed: false,
|
||||
|
||||
// Enables HD audio quality (but also disables echo cancellation, noise suppression and AGC).
|
||||
// enableHdAudio: false,
|
||||
|
||||
// Video
|
||||
|
||||
// Sets the preferred resolution (height) for local video. Defaults to 720.
|
||||
|
|
|
@ -104,6 +104,7 @@ export default [
|
|||
'e2eping',
|
||||
'enableDisplayNameInStats',
|
||||
'enableEmailInStats',
|
||||
'enableHdAudio',
|
||||
'enableIceRestart',
|
||||
'enableInsecureRoomNameWarning',
|
||||
'enableLayerSuspension',
|
||||
|
|
|
@ -42,11 +42,25 @@ export function initLib() {
|
|||
return (dispatch: Dispatch<any>, getState: Function): void => {
|
||||
const state = getState();
|
||||
const config = state['features/base/config'];
|
||||
const { enableHdAudio } = config;
|
||||
|
||||
if (!config) {
|
||||
throw new Error('Cannot init lib-jitsi-meet without config');
|
||||
}
|
||||
|
||||
if (enableHdAudio) {
|
||||
Object.assign(config, {
|
||||
...config,
|
||||
channelCount: 2,
|
||||
disableAP: true,
|
||||
enableNoAudioDetection: false,
|
||||
enableNoisyMicDetection: false,
|
||||
enableTalkWhileMuted: false,
|
||||
opusMaxAverageBitrate: 510000,
|
||||
stereo: true
|
||||
});
|
||||
}
|
||||
|
||||
dispatch({ type: LIB_WILL_INIT });
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue