audio: live mic gain preview with temporary loopback during edit

This commit is contained in:
Jage9
2026-02-22 17:40:44 -05:00
parent 89c88deb87
commit a918d46cd1
3 changed files with 29 additions and 1 deletions

View File

@@ -204,6 +204,18 @@ export class AudioEngine {
return this.loopbackEnabled;
}
/** Returns current loopback monitor state. */
isLoopbackEnabled(): boolean {
return this.loopbackEnabled;
}
/** Sets loopback monitor state directly. */
setLoopbackEnabled(enabled: boolean): boolean {
this.loopbackEnabled = enabled;
this.rebuildOutboundEffectGraph();
return this.loopbackEnabled;
}
async attachRemoteStream(
peer: SpatialPeerRuntime,
stream: MediaStream,