int sm_record_wav_close(SM_FILE_RECORD_PARMS *file_parms)
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.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody WAV FILE API.