sptell.c

来自「speech signal process tools」· C语言 代码 · 共 18 行

C
18
字号
#include <sp/sphere.h>int sp_tell(SP_FILE *sp){    char *proc="sp_tell " SPHERE_VERSION_STR;    if (sp == SPNULL)	return_err(proc,101,-1,"Null SPFILE structure");    if (sp->open_mode == SP_mode_read){ 	return_success(proc,0,sp->read_spifr->waveform->samples_read,"ok");    } else if (sp->open_mode == SP_mode_write) {	return_success(proc,0,sp->write_spifr->waveform->samples_written,"ok");    } else	return_err(proc,101,-1,"file not opened for read or write");}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?