From e91fe7870fb38f61d31d8b621bed8c310b617161 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 21 May 2024 14:56:15 +1200 Subject: [PATCH] rx bytes should still be incremented even when muted --- public/call.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/call.html b/public/call.html index e7231fc..f0bf41b 100644 --- a/public/call.html +++ b/public/call.html @@ -422,17 +422,17 @@ // listen to audio from call this.ws.onmessage = async (event) => { - // do nothing if muted - if(this.isSoundMuted){ - return; - } - // get encoded codec2 bytes from websocket message const encoded = await event.data.arrayBuffer(); // update stats this.rxBytes += encoded.byteLength; + // do nothing if muted + if(this.isSoundMuted){ + return; + } + // decode codec2 audio const decoded = await Codec2Lib.runDecode(this.codecMode, encoded);