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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user