Prosody WAV BFILE: API: sm_record_wav_bf_close

Prototype Definition

int sm_record_wav_bf_close(SM_BFILE_RECORD_PARMS *file_parms)

Parameters

file_parms
A pointer to a structure passed into sm_record_wav_bf_start() to start a record which has not yet been closed.

Description

Following completion of a recording into a WAV file this function must be called to write the correct WAV header in space previously reserved by sm_record_wav_bf_start() then closes the file.

Note that the sampling_rate of the record_parms structure must be set to the recorded sample rate,as returned by sm_record_status(). This is done automatically except when sm_record_bfile_progress_istatus() has been used.

Returns

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


This function is part of the Prosody WAV BFILE API.