on_snd_dev_operation property
Pointer<NativeFunction<pj_status_t Function(Int operation)> >
on_snd_dev_operation
getter/setter pair
Callback when the sound device is about to be opened or closed. This callback will be called even when null sound device or no sound device is configured by the application (i.e. the #pjsua_set_null_snd_dev() and #pjsua_set_no_snd_dev() APIs). Application can use the API #pjsua_get_snd_dev() to get the info about which sound device is going to be opened/closed.
This callback is mostly useful when the application wants to manage the sound device by itself (i.e. with #pjsua_set_no_snd_dev()), to get notified when it should open or close the sound device.
@param operation The value will be set to 0 to signal that sound device is about to be closed, and 1 to be opened.
@return The callback must return PJ_SUCCESS at the moment.
Implementation
external ffi
.Pointer<ffi.NativeFunction<pj_status_t Function(ffi.Int operation)>>
on_snd_dev_operation;