pjsua_snd_get_setting method
Retrieve a sound device setting. If sound device is currently active, the function will forward the request to the sound device. If sound device is currently inactive, and if application had previously set the setting and mark the setting as kept, then that setting will be returned. Otherwise, this function will return error.
Note that echo cancellation settings should be retrieved with #pjsua_get_ec_tail() API instead.
@param cap The sound device setting to retrieve. @param pval Pointer to receive the value. Please see #pjmedia_aud_dev_cap documentation about the type of value to be supplied for each setting.
@return PJ_SUCCESS on success or the appropriate error code.
Implementation
int pjsua_snd_get_setting(
int cap,
ffi.Pointer<ffi.Void> pval,
) {
return _pjsua_snd_get_setting(
cap,
pval,
);
}