Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #78 from EpicGames/master
Browse files Browse the repository at this point in the history
Fix: delayed mic input
  • Loading branch information
lukehb authored Feb 9, 2023
2 parents 910ff80 + dd9ea80 commit d010d83
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,6 @@ export class PeerConnectionController {
/(a=fmtp:\d+ .*level-asymmetry-allowed=.*)\r\n/gm,
'$1;x-google-start-bitrate=10000;x-google-max-bitrate=100000\r\n'
);
mungedSDP.replace(
'useinbandfec=1',
'useinbandfec=1;stereo=1;sprop-maxcapturerate=48000'
);

let audioSDP = '';

Expand All @@ -202,9 +198,9 @@ export class PeerConnectionController {
}

// Force mono or stereo based on whether ?forceMono was passed or not
audioSDP += this.config.isFlagEnabled(Flags.ForceMonoAudio)
? 'sprop-stereo=0;stereo=0;'
: 'sprop-stereo=1;stereo=1;';
audioSDP += this.config.isFlagEnabled(Flags.ForceMonoAudio)
? 'stereo=0;'
: 'stereo=1;';

// enable in-band forward error correction for opus audio
audioSDP += 'useinbandfec=1';
Expand Down

0 comments on commit d010d83

Please sign in to comment.