共 10 篇文章 |
|
}int writeAllFile(FILE *fp, unsigned char *buf, int len){if(NULL == fp || NULL == buf || 0 == len){printf("NULL == fp || NULL == buf || 0 == len write \n"); 阅68 转2 评0 公众公开 15-07-06 11:18 |
}}int overreadFile(FILE *fp, unsigned char *buf,int *len_t){if(NULL == fp || NULL == buf){return -1;printf("len[%d]--len1[%d]\n",len,len1);}int writeAllFile(FILE *fp, unsigned char *buf, int len){if(NULL == fp || NULL == buf || 0 == len){printf("NULL == fp || NULL == buf || 0 == len write \n");int ... 阅3953 转69 评0 公众公开 15-07-03 10:14 |
阅4142 转49 评0 公众公开 15-07-01 18:08 |
}}int overreadFile(FILE *fp, unsigned char *buf,int *len_t){if(NULL == fp || NULL == buf){return -1;printf("len[%d]--len1[%d]\n",len,len1);}int writeAllFile(FILE *fp, unsigned char *buf, int len){if(NULL == fp || NULL == buf || 0 == len){printf("NULL == fp || NULL == buf || 0 == len write \n"); 阅215 转3 评0 公众公开 15-06-30 17:44 |
static int mono_resample(ReSampleChannelContext *s, short *output, short *input, int nb_samples);bool audio_resample_init(int output_channels, int input_channels, int output_rate, int input_rate);int audio_resample(short *output, short *input, int nb_samples);int init_PCM_resample(CResample **ppResampl... 阅160 转3 评0 公众公开 15-06-30 17:42 |
阅316 转4 评0 公众公开 15-06-30 17:41 |
阅659 转5 评0 公众公开 15-06-29 17:50 |
resample-test#include <stdio.h>#include <stdlib.h>#include <errno.h>#include "resample.h"#include "volume.h"int openFileWrite(FILE** fp,char *name){*fp = fopen(name,"w+");printf("len[%d]--len1[%d]\n",len,len1);*len_t = len;}int writeAllFile(FILE *fp, unsigned c... 阅81 转1 评0 公众公开 15-06-29 17:48 |
PCM音量调节。音频视频交错格式数据(.AVI)、波形格式数据(.WAV)、位图格式数据(.RDI)、MIDI格式数据(.RMI)、调色板格式(.PAL)、多媒体电影(.RMN)、动画光标(.ANI)、其它RIFF文件(.BND)。最基本的WAVE文件是PCM(脉冲编码调制)格式的,这种文件直接存储采样的声音数据没有经过任何的压缩,是声卡直接支持的数据格式,要让声卡正确播放其它被压... 阅952 转1 评0 公众公开 15-06-29 14:20 |
阅778 转9 评0 公众公开 15-06-24 17:12 |