mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 04:13:18 +01:00
Tell Chromium not to change gain during recording
This commit is contained in:
@@ -68,7 +68,10 @@ export class RecorderClass {
|
|||||||
this.recorder.onError = this.onError.bind(this);
|
this.recorder.onError = this.onError.bind(this);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
const stream = await navigator.mediaDevices.getUserMedia({
|
||||||
|
// @ts-expect-error Typescript doesn't know about these important options
|
||||||
|
audio: { mandatory: { googAutoGainControl: false } },
|
||||||
|
});
|
||||||
if (!this.context || !this.input) {
|
if (!this.context || !this.input) {
|
||||||
const err = new Error(
|
const err = new Error(
|
||||||
'Recorder/getUserMedia/stream: Missing context or input!'
|
'Recorder/getUserMedia/stream: Missing context or input!'
|
||||||
|
|||||||
Reference in New Issue
Block a user