Peng Zhou

Results 4 comments of Peng Zhou

> 把common.h中的FILE_CUT_MAX_MS (10*1000)就是10秒我记得,因为在src/main.c中把16k_1.pcm写死了,改filename这个变量就好了。 对的,我后来也看到了,但是想批量读取文件夹中的pcm文件,你知道怎么修改吗?

> > > 把common.h中的FILE_CUT_MAX_MS (10*1000)就是10秒我记得,因为在src/main.c中把16k_1.pcm写死了,改filename这个变量就好了。 > > > > > > 对的,我后来也看到了,但是想批量读取文件夹中的pcm文件,你知道怎么修改吗? > > 我在邮件给您回复了 嗯嗯,收到了

在src的main.c文件中改成下面的程序即可: ``` DIR *dirp; struct dirent *dp; dirp = opendir("pcm"); //打开目录指针 int res = 0; while ((dp = readdir(dirp)) != NULL) { //通过目录指针读目录 if(strstr(dp->d_name,".pcm")) { char filename[100] = "pcm/"; strcat(filename,dp->d_name);...

> Unfortunately, there is no automatic memory management function in this project. Therefore, > > you should manually split the long wave file into some several short wave file of...