From a6022161b047ac4e9287a2289fee2f4c0918327a Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 21 May 2024 17:04:39 +1200 Subject: [PATCH] allow updating remote codec when muted --- public/call.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/call.html b/public/call.html index ad85979..8372da2 100644 --- a/public/call.html +++ b/public/call.html @@ -454,11 +454,6 @@ // update stats this.rxBytes += payload.length; - // do nothing if muted - if(this.isSoundMuted){ - return; - } - // decode audio call payload const audioCallPayload = AudioCallPayload.decode(payload); @@ -477,6 +472,11 @@ // update ui this.remoteAudioCodec = "Codec2 Mode " + mode; + // do nothing if muted + if(this.isSoundMuted){ + return; + } + // decode codec2 audio const decoded = await Codec2Lib.runDecode(mode, encoded);