Fixes audio recording

This commit is contained in:
Josh Perez 2023-01-26 11:57:39 -05:00 committed by GitHub
parent 10b0ec12a1
commit 28a295d4e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 7 deletions

View file

@ -1,10 +1,10 @@
// Copyright 2016 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { requestMicrophonePermissions } from '../util/requestMicrophonePermissions';
import * as log from '../logging/log';
import type { WebAudioRecorder } from '../WebAudioRecorder';
import * as Errors from '../types/errors';
import { requestMicrophonePermissions } from '../util/requestMicrophonePermissions';
import { WebAudioRecorder } from '../WebAudioRecorder';
export class RecorderClass {
private context?: AudioContext;
@ -58,7 +58,7 @@ export class RecorderClass {
this.context = new AudioContext();
this.input = this.context.createGain();
this.recorder = new window.WebAudioRecorder(
this.recorder = new WebAudioRecorder(
this.input,
{
timeLimit: 60 + 3600, // one minute more than our UI-imposed limit