Fixed loading of augain module

This commit is contained in:
Juha Heinanen
2024-11-17 04:38:27 +02:00
parent d26b7e7696
commit bfa6e5285e
2 changed files with 2 additions and 2 deletions

View File

@ -1631,7 +1631,7 @@ class BaresipService: Service() {
var audioFocusRequest: AudioFocusRequestCompat? = null
var aec = AcousticEchoCanceler.isAvailable()
var agc = AutomaticGainControl.isAvailable()
private var ns = NoiseSuppressor.isAvailable()
private val ns = NoiseSuppressor.isAvailable()
private var btAdapter: BluetoothAdapter? = null
fun requestAudioFocus(ctx: Context): Boolean {

View File

@ -158,7 +158,7 @@ object Config {
config = "${config}module webrtc_aecm.so\n"
val micGain = previousVariable("augain")
config = if (!BaresipService.agc && (micGain == "" || micGain == "1.0"))
config = if (BaresipService.agc || micGain == "" || micGain == "1.0")
"${config}augain 1.0\n"
else
"${config}module augain.so\naugain $micGain\n"