Prosody WAV BFILE: API: sm_record_wav_bf_trim_close

Prototype Definition

int sm_record_wav_bf_trim_close(SM_BFILE_RECORD_PARMS *file_parms, tSM_UT32 trimLength)

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.
trimLength
The number of octets to trim from the end of the data.

Description

trimLength octets of data are subtracted from the WAV file length recorded in the WAV header and hence this amount of data will be omitted from the end of a replay of this WAV file. Then a sm_record_wav_bf_close() is performed.

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.