Retain previous audio score if number of packets is low (#793)

* Retain previous audio score if number of packets is low

* better comment and correct spelling
This commit is contained in:
Raja Subramanian
2022-06-29 14:48:06 +05:30
committed by GitHub
parent 1e39a680ac
commit 2c48eafd6e
2 changed files with 18 additions and 6 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ func getRtcMosStat(params TrackScoreParams) rtcmos.Stat {
func AudioTrackScore(params TrackScoreParams) float32 {
stat := getRtcMosStat(params)
stat.AudioConfig = &rtcmos.AudioConfig{}
if params.DtxDisabled {
flag := false
if !params.DtxDisabled {
flag := true
stat.AudioConfig.Dtx = &flag
}