Use default values for audio_buffer and jitter_buffer_delay
This commit is contained in:
@@ -10,14 +10,12 @@ audio_source opensles,nil
|
|||||||
audio_alert opensles,nil
|
audio_alert opensles,nil
|
||||||
audio_level no
|
audio_level no
|
||||||
audio_buffer_mode adaptive
|
audio_buffer_mode adaptive
|
||||||
audio_buffer 40-200
|
|
||||||
ausrc_format s16
|
ausrc_format s16
|
||||||
auenc_format s16
|
auenc_format s16
|
||||||
auplay_format s16
|
auplay_format s16
|
||||||
audec_format s16
|
audec_format s16
|
||||||
rtp_tos 184
|
rtp_tos 184
|
||||||
jitter_buffer_type adaptive
|
jitter_buffer_type adaptive
|
||||||
jitter_buffer_delay 5-10
|
|
||||||
rtp_stats yes
|
rtp_stats yes
|
||||||
dyn_dns yes
|
dyn_dns yes
|
||||||
module opus.so
|
module opus.so
|
||||||
|
|||||||
@@ -91,16 +91,15 @@ object Config {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!config.contains("audio_buffer_mode")) {
|
if (!config.contains("audio_buffer_mode"))
|
||||||
config = "${config}audio_buffer_mode adaptive\n"
|
config = "${config}audio_buffer_mode adaptive\n"
|
||||||
config = "${config}audio_buffer 40-200\n"
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!config.contains("jitter_buffer_type")) {
|
removeVariable("audio_buffer") // use default 20-160
|
||||||
|
|
||||||
|
if (!config.contains("jitter_buffer_type"))
|
||||||
config = "${config}jitter_buffer_type adaptive\n"
|
config = "${config}jitter_buffer_type adaptive\n"
|
||||||
} else {
|
|
||||||
removeVariable("jitter_buffer_wish")
|
removeVariable("jitter_buffer_delay") // use default 5-10
|
||||||
}
|
|
||||||
|
|
||||||
if (config.contains("contacts_mode")) {
|
if (config.contains("contacts_mode")) {
|
||||||
BaresipService.contactsMode = variable("contacts_mode")[0].lowercase()
|
BaresipService.contactsMode = variable("contacts_mode")[0].lowercase()
|
||||||
|
|||||||
Reference in New Issue
Block a user