allow updating remote codec when muted

This commit is contained in:
liamcottle
2024-05-21 17:04:39 +12:00
parent a142f5c84c
commit a6022161b0

View File

@@ -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);