mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-29 03:16:37 -05:00
rx bytes should still be incremented even when muted
This commit is contained in:
parent
4d6beb4af8
commit
e91fe7870f
1 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue