Fixed loading of augain module
This commit is contained in:
@ -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 {
|
||||
|
||||
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user