Don't show mig gain or aec setting if device provides them
This commit is contained in:
@@ -76,9 +76,13 @@ class AudioActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
micGain = binding.MicGain
|
if (!BaresipService.agc) {
|
||||||
oldMicGain = Config.variable("augain")
|
micGain = binding.MicGain
|
||||||
micGain.setText(oldMicGain)
|
oldMicGain = Config.variable("augain")
|
||||||
|
micGain.setText(oldMicGain)
|
||||||
|
} else {
|
||||||
|
binding.MicGainLayout.visibility = View.GONE
|
||||||
|
}
|
||||||
|
|
||||||
speakerPhone = binding.SpeakerPhone
|
speakerPhone = binding.SpeakerPhone
|
||||||
speakerPhone.isChecked = BaresipService.speakerPhone
|
speakerPhone.isChecked = BaresipService.speakerPhone
|
||||||
@@ -127,9 +131,13 @@ class AudioActivity : AppCompatActivity() {
|
|||||||
oldOpusPacketLoss = Config.variable("opus_packet_loss")
|
oldOpusPacketLoss = Config.variable("opus_packet_loss")
|
||||||
opusPacketLoss.setText(oldOpusPacketLoss)
|
opusPacketLoss.setText(oldOpusPacketLoss)
|
||||||
|
|
||||||
aec = binding.Aec
|
if (!BaresipService.aec) {
|
||||||
oldAec = modules.contains("webrtc_aecm.so")
|
aec = binding.Aec
|
||||||
aec.isChecked = oldAec
|
oldAec = modules.contains("webrtc_aecm.so")
|
||||||
|
aec.isChecked = oldAec
|
||||||
|
} else {
|
||||||
|
binding.AecLayout.visibility = View.GONE
|
||||||
|
}
|
||||||
|
|
||||||
audioDelay = binding.AudioDelay
|
audioDelay = binding.AudioDelay
|
||||||
audioDelay.setText("${BaresipService.audioDelay}")
|
audioDelay.setText("${BaresipService.audioDelay}")
|
||||||
|
|||||||
Reference in New Issue
Block a user