int sm_replay_abort(struct sm_replay_abort_parms *abortp)
typedef struct sm_replay_abort_parms { tSMChannelId channel; /* in */ tSM_UT32 offset; /* out */ tSM_UT32 nowait; /* in */ } SM_REPLAY_ABORT_PARMS;
This call allows an application to abort prematurely a replay job on the output channel specified. After a replay has been aborted, a final replay event will be notified to the application and silence will be output on the channel.
If the call completes successfully, the parameter offset will be set to a value between 0 and the number of octets of data actually played indicating the point at which replay was aborted. This be a value up to the total number of octets already supplied via sm_put_replay_data() and sm_put_last_replay_data().
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody speech processing API.