Prosody WAV FILE: API: sm_record_wav_close

Prototype Definition

int sm_record_wav_close(SM_FILE_RECORD_PARMS *file_parms)

Parameters

file_parms
A pointer to a structure passed into sm_record_wav_start() to start a record that 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_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_file_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 FILE API.