pjsua_snd_set_setting method
Configure sound device setting to the sound device being used. If sound device is currently active, the function will forward the setting to the sound device instance to be applied immediately, if it supports it.
The setting will be saved for future opening of the sound device, if the "keep" argument is set to non-zero. If the sound device is currently inactive, and the "keep" argument is false, this function will return error.
Note that in case the setting is kept for future use, it will be applied to any devices, even when application has changed the sound device to be used. To reset the setting, application can call #pjsua_set_snd_dev2() with \a use_default_settings set to PJ_TRUE.
Note also that the echo cancellation setting should be set with #pjsua_set_ec() API instead.
See also #pjmedia_aud_stream_set_cap() for more information about setting an audio device capability.
@param cap The sound device setting to change. @param pval Pointer to value. Please see #pjmedia_aud_dev_cap documentation about the type of value to be supplied for each setting. @param keep Specify whether the setting is to be kept for future use.
@return PJ_SUCCESS on success or the appropriate error code.
Implementation
int pjsua_snd_set_setting(
int cap,
ffi.Pointer<ffi.Void> pval,
int keep,
) {
return _pjsua_snd_set_setting(
cap,
pval,
keep,
);
}