wav.h
wav_file_formate.c
编译wav_file_formate.c
yuan@yuan:~/work/test/wav_file_formate> gcc -o wav_file_formate wav_file_formate.c
运行程序,从文件test.g711文件读取raw数据并封装成test.wav文件中
yuan@yuan:~/work/test/wav_file_formate> ./wav_file_formate test.g711 test.wav
生成test.wav文件,用播放器可以直接打开。
感谢前辈们的分享:
http://blog.csdn.net/pyundeng/archive/2006/10/24/1348936.aspx
http://www.cnitblog.com/liaoqingshan/archive/2008/09/02/48651.html
http://www.cnitblog.com/tinnal/archive/2009/01/03/53401.html
http://www-mmsp.ece.mcgill.ca/documents/audioformats/wave/wave.html