#include <sent/stddefs.h>
#include <sent/speech.h>
wrwav.cのインクルード依存関係図
マクロ定義 | |
#define | MYWRITE(A, B, C, D) if (!mywrite(A, B, C, D)) {j_printerr("wrwav_open: write failed\n"); fclose_writefile(fp); return NULL;} |
Function macro to mywrite() with error handling. | |
関数 | |
static boolean | mywrite (void *buf, size_t unitbyte, int unitnum, FILE *fp) |
FILE * | wrwav_open (char *filename, int sfreq) |
Open/create a WAVE file and write header. | |
boolean | wrwav_data (FILE *fp, SP16 *buf, int len) |
boolean | wrwav_close (FILE *fp) |
Close the file. | |
変数 | |
static int | totallen |
Total number of samples written to the file. |
wrwav.c で定義されています。
|
Write speech data in little endian.
参照元 CMN_save_to_file(), wrwav_close(), と wrwav_data(). |
|
Open/create a WAVE file and write header. Open or creat a new WAV file and prepare for later data writing. The frame length written here is dummy, and will be overwritten when closed by wrwav_close().
参照元 record_sample_open(). |
|
Write speech samples.
|
|
Close the file. The frame length in the header part is overwritten by the actual value before file close.
|