欢迎来到天天文库
浏览记录
ID:47546604
大小:18.08 KB
页数:14页
时间:2020-01-14
《Ecshop中插件icoolmedia的相关算法》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Ecshop中插件icoolmedia的相关算法,不同的效果我们想要达到很简单需要找到一个平衡点,利用代码结构完成ifndefNS_H,从而达到一个有效利用率的提升。下面就上代码、spx_ifft(inHandle->fft_table,inHandle->ft,szAudio);//overlapandaddfor(i=0;iframe_size;i++)ioPcm[i]=inHandle->outbuf[i]+szAudio[i];for(i=0;iframe_size;i++)inHandle->outbuf[i
2、]=szAudio[inHandle->frame_size+i]*inHandle->win_gain;//limitvalueofadapt_countif(inHandle->adapt_count>16000)inHandle->adapt_count=2;}[文件]ns.h~455B//本文来自于icoolmedia,相关算法请参考ifndefNS_H#defineNS_H#include"Platform.h"#ifdef__cplusplusextern"C"{#endiftypedefstructNoiseReduction_tNoiseRedu
3、ction;NoiseReduction*NoiseReductionCreate(OsInt32inSampleRate,OsInt32inFrameSize);voidNoiseReductionDestroy(NoiseReduction*inHandle);voidNoiseReductionProcess(NoiseReduction*inHandle,OsInt16*ioPcm);#ifdef__cplusplus}#endif#endif[文件]Platform.h~6KB/**Copyright(c)2013刘志鹏.AllRightsReserv
4、ed.*/#ifndefPLATFORM_H#definePLATFORM_H#ifdefined(_WIN32)
5、
6、defined(WIN32)
7、
8、defined(_WIN64)#defineOS_WINSYS1#elifdefined(__linux__)
9、
10、defined(__linuxppc__)
11、
12、defined(__FreeBSD__)#defineOS_LINUX2#elifdefined(__MacOSX__)
13、
14、defined(__APPLE__)
15、
16、defined(__MACH__)#defineOS_APPLE3#endif//Window
17、ssystem'sversion#defineOS_NONE0//错误#defineOS_WIN20001//Windows2000#defineOS_WINXP2//WindowsXP#defineOS_WINVISTA3//WindowsVista#defineOS_WIN74//Win7#defineOS_WIN85//Win8#defineOS_WIN8_16//Win8.1#include#include#include#include#include#inc
18、lude#include#ifdef__cplusplus#include#include#include#include#include#include#include#else#include#include#endif#ifdefOS_WINSYS//forCoInitializeEx#define_WIN32_DCOM//#include//#
19、include#include#include#include#ifndef__MINGW32__#ifdef__cplusplus#include#endif#endif#include#include#include#include#include#elifOS_LINUX#include#include#inc
20、lude
此文档下载收益归作者所有