Fixed loading of augain module
This commit is contained in:
@@ -1631,7 +1631,7 @@ class BaresipService: Service() {
|
|||||||
var audioFocusRequest: AudioFocusRequestCompat? = null
|
var audioFocusRequest: AudioFocusRequestCompat? = null
|
||||||
var aec = AcousticEchoCanceler.isAvailable()
|
var aec = AcousticEchoCanceler.isAvailable()
|
||||||
var agc = AutomaticGainControl.isAvailable()
|
var agc = AutomaticGainControl.isAvailable()
|
||||||
private var ns = NoiseSuppressor.isAvailable()
|
private val ns = NoiseSuppressor.isAvailable()
|
||||||
private var btAdapter: BluetoothAdapter? = null
|
private var btAdapter: BluetoothAdapter? = null
|
||||||
|
|
||||||
fun requestAudioFocus(ctx: Context): Boolean {
|
fun requestAudioFocus(ctx: Context): Boolean {
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ object Config {
|
|||||||
config = "${config}module webrtc_aecm.so\n"
|
config = "${config}module webrtc_aecm.so\n"
|
||||||
|
|
||||||
val micGain = previousVariable("augain")
|
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"
|
"${config}augain 1.0\n"
|
||||||
else
|
else
|
||||||
"${config}module augain.so\naugain $micGain\n"
|
"${config}module augain.so\naugain $micGain\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user