mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00: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);
|
||||
|
||||
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) {
|
||||
const err = new Error(
|
||||
'Recorder/getUserMedia/stream: Missing context or input!'
|
||||
|
||||
Reference in New Issue
Block a user