- Added AMR narrowband codec.
This commit is contained in:
@@ -21,6 +21,7 @@ rtp_stats no
|
|||||||
dyn_dns yes
|
dyn_dns yes
|
||||||
net_prefer_ipv6 no
|
net_prefer_ipv6 no
|
||||||
module opus.so
|
module opus.so
|
||||||
|
module amr.so
|
||||||
module ilbc.so
|
module ilbc.so
|
||||||
module g7221.so
|
module g7221.so
|
||||||
module g722.so
|
module g722.so
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ add_library(lib_g722_1 STATIC IMPORTED)
|
|||||||
set_target_properties(lib_g722_1 PROPERTIES IMPORTED_LOCATION
|
set_target_properties(lib_g722_1 PROPERTIES IMPORTED_LOCATION
|
||||||
${distribution_DIR}/g7221/lib/${ANDROID_ABI}/libg722_1.a)
|
${distribution_DIR}/g7221/lib/${ANDROID_ABI}/libg722_1.a)
|
||||||
|
|
||||||
|
add_library(lib_amrnb STATIC IMPORTED)
|
||||||
|
set_target_properties(lib_amrnb PROPERTIES IMPORTED_LOCATION
|
||||||
|
${distribution_DIR}/amr/lib/${ANDROID_ABI}/libamrnb.a)
|
||||||
|
|
||||||
add_library(lib_ilbc STATIC IMPORTED)
|
add_library(lib_ilbc STATIC IMPORTED)
|
||||||
set_target_properties(lib_ilbc PROPERTIES IMPORTED_LOCATION
|
set_target_properties(lib_ilbc PROPERTIES IMPORTED_LOCATION
|
||||||
${distribution_DIR}/ilbc/lib/${ANDROID_ABI}/libilbc.a)
|
${distribution_DIR}/ilbc/lib/${ANDROID_ABI}/libilbc.a)
|
||||||
@@ -71,6 +75,7 @@ target_link_libraries(baresip
|
|||||||
lib_spandsp
|
lib_spandsp
|
||||||
lib_g722_1
|
lib_g722_1
|
||||||
lib_ilbc
|
lib_ilbc
|
||||||
|
lib_amrnb
|
||||||
lib_webrtc
|
lib_webrtc
|
||||||
lib_zrtp
|
lib_zrtp
|
||||||
lib_bn
|
lib_bn
|
||||||
|
|||||||
@@ -21,9 +21,10 @@ object Config {
|
|||||||
config = "${config}ausrc_format s16\nauplay_format s16\nauenc_format s16\naudec_format s16\nmodule webrtc_aec.so\n"
|
config = "${config}ausrc_format s16\nauplay_format s16\nauenc_format s16\naudec_format s16\nmodule webrtc_aec.so\n"
|
||||||
write = true
|
write = true
|
||||||
}
|
}
|
||||||
if (!config.contains(Regex("module[ ]+g726.so"))) {
|
if (!config.contains(Regex("module[ ]+amr.so"))) {
|
||||||
config = config.replace(Regex("module[ ]+g7...?.so\n"), "")
|
config = config.replace(Regex("module[ ]+g7...?.so\n"), "")
|
||||||
config = config.replace(Regex("module[ ]+ilbc.so\n"), "")
|
config = config.replace(Regex("module[ ]+ilbc.so\n"), "")
|
||||||
|
config = "${config}module amr.so\n"
|
||||||
config = "${config}module ilbc.so\n"
|
config = "${config}module ilbc.so\n"
|
||||||
config = "${config}module g7221.so\n"
|
config = "${config}module g7221.so\n"
|
||||||
config = "${config}module g722.so\n"
|
config = "${config}module g722.so\n"
|
||||||
@@ -94,6 +95,7 @@ object Config {
|
|||||||
write = true
|
write = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (write) {
|
if (write) {
|
||||||
Log.e("Baresip", "Writing config '$config'")
|
Log.e("Baresip", "Writing config '$config'")
|
||||||
Utils.putFileContents(configPath, config.toByteArray())
|
Utils.putFileContents(configPath, config.toByteArray())
|
||||||
|
|||||||
Reference in New Issue
Block a user