資源簡介
PCM 8位文件提取PCM采樣的C語言代碼
代碼片段和文件信息
#include?
#include?
#define?MAX_AUDIO_FILE_SIZE?1000
int?main?(int?argcchar?**argv)
{
FILE?*src_file;
FILE?*dst_file;
long?int?len;
char?*buffer;
if(argc!=3)
{
printf(“Usage:?remove_head?src?dst!“);
return?0;
}
if(?fopen_s(&src_file(char?*)argv[1]“rb“)!=0)
{
printf(“Can‘t?open?source?file!“);
return?0;
}
if(?fopen_s(&dst_file(char?*)argv[2]“wb“)!=0)
{
printf(“Can‘t?open?destination?file!“);
return?0;
}
評(píng)論
共有 條評(píng)論