Prosody high level FILE play/record: API: sm_record_file_stop

Prototype Definition

int sm_record_file_stop(SM_FILE_RECORD_PARMS *file_parms, int nowait)

Parameters

file_parms
A pointer to a structure passed into sm_record_file_start() to start recording that has not yet indicated that it has finished.
nowait
Whether to wait for a corresponding call to sm_record_file_complete() to have complete the recording before returning

Description

Abort a previously initiated file recording. If nowait if non-zero, this function assumes the current file recording is being progressed by a separate thread of execution in which sm_record_file_complete() has been invoked.

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody high level FILE play/record API.