Set audioGainNode to null when couldn't setup GainNode

This commit is contained in:
redphx 2024-05-25 10:09:33 +07:00
parent 3418cdd666
commit 78d74cfd23

View File

@ -116,6 +116,7 @@ export const BxExposed = {
source.connect(gainNode).connect(audioCtx.destination); source.connect(gainNode).connect(audioCtx.destination);
} catch (e) { } catch (e) {
BxLogger.error('setupGainNode', e); BxLogger.error('setupGainNode', e);
STATES.currentStream.audioGainNode = null;
} }
}, },