This is a better approach to handle sound device timing problem, as features such as auto-close and stereo will work.
Application can enable this via PJSUA settings:
Compile time, set PJSUA_DEFAULT_SND_USE_SW_CLOCK to PJ_TRUE in config_site.h.
Note: In config_site_sample.h it is enabled by default for Android (i.e: when PJ_CONFIG_ANDROID == 1).
Run time, set pjsua_media_config.snd_use_sw_clock to PJ_TRUE in PJSUA or MediaConfig.sndUseSwClock to true in PJSUA2.
This is a better approach to handle sound device timing problem, as features such as auto-close and stereo will work.
Application can enable this via PJSUA settings:
PJSUA_DEFAULT_SND_USE_SW_CLOCK
toPJ_TRUE
inconfig_site.h
. Note: Inconfig_site_sample.h
it is enabled by default for Android (i.e: whenPJ_CONFIG_ANDROID == 1
).pjsua_media_config.snd_use_sw_clock
toPJ_TRUE
in PJSUA orMediaConfig.sndUseSwClock
totrue
in PJSUA2.