现在做一个功能,录音功能。录音的时候暂停,再录音。但是Android没有提供原生的方法,暂停。现在想到的是,将前后两个文件合并到一起,但是合并后,播放器只认第一次的录音,后面合并的都不能识别。考虑得删除部分文件头啥的,但是不知道文件头长度事多少,没法进行删除。请各位大神帮忙看看。
ringa_lee2017-04-17 11:09:56
https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
The wav format specification can be found here. Remove the file header of the second file, change the Chunksize and subchunksize2 fields of the first file, and add the number of bytes
If it’s not wav, I’m not sure. There should be special specifications for the corresponding file format