文件名称:Goertzel_file
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 14kb
- 下载次数:
- 1次
- 提 供 者:
- ton***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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
作用:初始化算法参数
用法:采用算法进行检测前执行一次,如果需要改变参数,调用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_file
(系统自动生成,下载前可以参看下载内容)
下载文件列表
单音频检测Goertzel算法类文件
............................\Goertzel.cpp
............................\Goertzel.h
............................\Goertzel算法在音调检测中的应用.doc
............................\Goertzel算法类说明文档.txt
............................\Goertzel.cpp
............................\Goertzel.h
............................\Goertzel算法在音调检测中的应用.doc
............................\Goertzel算法类说明文档.txt