Goertzel_file

所属分类:单片机开发
开发工具:Visual C++
文件大小:14KB
下载次数:45
上传日期:2008-08-03 14:25:43
上 传 者tonard
说明:  void InitGoertzel(void) 作用:初始化算法参数 用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter() float CGoertzel::GetMagnitude(unsigned char * sampleData, int length) //算法主接口 作用:对采集下来的音频数据用算法处理,返回一个结果 参数:sampleData-音频数据缓冲地址指针; length-缓冲区尺寸(音频数据数量),字节数; 返回值:返回算法结果。 void SetParameter(DWORD set_SampleRate, DWORD set_TargetFreq, DWORD set_BlockSize) 作用:设置算法参数; 参数:set_SampleRate-音频数据抽样速率; set_TargetFreq-目标信号频率; set_BlockSize-算法数据块尺寸(采样点); 用法:调用本函数后,需要调用一次InitGoertzel(void)才会生效
(void InitGoertzel (void) function: initialization algorithm parameters Usage: The algorithm performs a pre-test, if the need to change the parameters, calling SetParameter () float CGoertzel:: GetMagnitude (unsigned char* sampleData, int length)// Algorithm for the main interface role: to collect audio data from the treatment algorithm to return a result parameter: sampleData-audio data buffer address pointer length-buffer size (the number of audio data), number of bytes return value: the return of algorithm results. void SetParameter (DWORD set_SampleRate, DWORD set_TargetFreq, DWORD set_BlockSize) Role: Set the algorithm parameters parameters: set_SampleRate-audio data sampling rate set_TargetFreq-target signal frequency set_BlockSize-algorithm data block size (sampling points) Usage: Call this function after the need to call a InitGoertzel (void) will come into force)

文件列表:
单音频检测Goertzel算法类文件 (0, 2008-08-02)
单音频检测Goertzel算法类文件\Goertzel.cpp (3407, 2003-09-08)
单音频检测Goertzel算法类文件\Goertzel.h (921, 2003-09-08)
单音频检测Goertzel算法类文件\Goertzel算法在音调检测中的应用.doc (32256, 2003-09-08)
单音频检测Goertzel算法类文件\Goertzel算法类说明文档.txt (670, 2003-09-08)

近期下载者

相关文件


收藏者