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

Commit

Permalink
Fix: delayed mic input as a result of signalling stereo mic when mic …
Browse files Browse the repository at this point in the history
…is infact mono (#77)
  • Loading branch information
Belchy06 committed Feb 9, 2023
1 parent 5de1f6d commit dd9ea80
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 dd9ea80

Please sign in to comment.