Add debugging console

This commit is contained in:
2026-03-07 21:59:39 +01:00
parent 66246e4e16
commit 90f067e662
49 changed files with 5962 additions and 139 deletions

View File

@@ -631,10 +631,14 @@ export class MediaManager {
try {
this.inputGainSourceNode?.disconnect();
this.inputGainNode?.disconnect();
} catch { /* already disconnected */ }
} catch (error) {
this.logger.warn('Input gain nodes were already disconnected during teardown', error as any);
}
if (this.inputGainCtx && this.inputGainCtx.state !== 'closed') {
this.inputGainCtx.close().catch(() => {});
this.inputGainCtx.close().catch((error) => {
this.logger.warn('Failed to close input gain audio context', error as any);
});
}
this.inputGainCtx = null;