From 78d74cfd23881dd7842e599c91e379972cd7c903 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 25 May 2024 10:09:33 +0700 Subject: [PATCH] Set audioGainNode to null when couldn't setup GainNode --- src/utils/bx-exposed.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/bx-exposed.ts b/src/utils/bx-exposed.ts index d38aada..2545b62 100644 --- a/src/utils/bx-exposed.ts +++ b/src/utils/bx-exposed.ts @@ -116,6 +116,7 @@ export const BxExposed = { source.connect(gainNode).connect(audioCtx.destination); } catch (e) { BxLogger.error('setupGainNode', e); + STATES.currentStream.audioGainNode = null; } },