allow updating remote codec when muted
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user