Prosody high level BFILE play/record: API: sm_record_bfile_complete

Prototype Definition

int sm_record_bfile_complete(SM_BFILE_RECORD_PARMS *file_parms)

Parameters

file_parms
A pointer to a structure passed into sm_record_bfile_start() to start recording which has not yet indicated that it has finished.

Description

Transfers all remaining data from speech processing module to file for previously initiated record. This call may block during execution while it waits for buffered data to become available on the speech processing module.

Note that this function assigns an event to the channel and removes it again when the replay finishes. If the channel previously had an event assigned, that assignment may have been lost (this depends on the operating system as events work differently on different operating systems).

Returns

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


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