pjsua_set_ec method
Change the echo cancellation settings.
The behavior of this function depends on whether the sound device is currently active, and if it is, whether device or software AEC is being used.
If the sound device is currently active, and if the device supports AEC, this function will forward the change request to the device and it will be up to the device on whether support the request. If software AEC is being used (the software EC will be used if the device does not support AEC), this function will change the software EC settings. In all cases, the setting will be saved for future opening of the sound device.
If the sound device is not currently active, this will only change the default AEC settings and the setting will be applied next time the sound device is opened.
@param tail_ms The tail length, in miliseconds. Set to zero to disable AEC. @param options Options to be passed to pjmedia_echo_create(). Normally the value should be zero.
@return PJ_SUCCESS on success.
Implementation
int pjsua_set_ec(
int tail_ms,
int options,
) {
return _pjsua_set_ec(
tail_ms,
options,
);
}