int sm_replay_file_stop(SM_FILE_REPLAY_PARMS *file_parms, int nowait)
Abort a previously initiated file replay. If nowait if non-zero, this function assumes the current file replay is being progressed by a separate thread of execution in which sm_replay_file_complete() has been invoked.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody high level FILE play/record API.