-
void InitGoertzel(void)
作用:初始化算法参数
用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter(...
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
- 2023-03-11 13:30:04下载
- 积分:1
-
单片机计数器程序。
单片机计数器程序。-counter SCM procedures.
- 2022-02-03 19:00:15下载
- 积分:1
-
TP900掌机功能测试C源码大全(含开发头文件)
TP900掌机功能测试C源码大全(含开发头文件)-TP900 portable C source functional testing Guinness
- 2022-07-04 07:21:42下载
- 积分:1
-
keil c51编写的TLC549驱动函数,经过了测试的
keil c51编写的TLC549驱动函数,经过了测试的-keil c51 ?嘈
- 2022-03-03 03:26:08下载
- 积分:1
-
4*4矩阵键盘(行扫描法)
(S51环境)
4*4矩阵键盘(行扫描法)
(S51环境)-4* 4 matrix keyboard (line scanning) (S51 environment)
- 2022-03-25 07:08:37下载
- 积分:1
-
This is the Philips chip tea5767 fm driver
这是philips 公司的fm 芯片tea5767的驱动程序-This is the Philips chip tea5767 fm driver
- 2023-07-06 10:00:02下载
- 积分:1
-
一个集合DS18B20的多路温度测量系统,加上adc0809数据采集,加上1602液晶显示的综合数据处理系统,有较高学习价值....
一个集合DS18B20的多路温度测量系统,加上adc0809数据采集,加上1602液晶显示的综合数据处理系统,有较高学习价值.-DS18B20 a collection of multi-channel temperature measurement system, combined with adc0809 data acquisition, together with the 1602 liquid crystal display integrated data processing systems, which have a higher learning value.
- 2022-03-20 23:32:19下载
- 积分:1
-
Keil Chinese entry Guide
keil c51 uversion2 中文入门教程-Keil Chinese entry Guide
- 2023-03-22 10:35:03下载
- 积分:1
-
C8051F040单片机CAN总线互相通信程序
C8051F040单片机CAN总线互相通信程序
-C8051F040 single-chip CAN bus communication procedures with each other
- 2022-03-19 23:24:34下载
- 积分:1
-
MSP430模拟串口程序,希望对大家学习430单片机有用... ... ... ...!...
MSP430模拟串口程序,希望对大家学习430单片机有用... ... ... ...!-MSP430 analog serial procedures, and they hope to learn from U.S. 430 Singlechip useful ... ... ... ...!
- 2022-05-30 00:30:38下载
- 积分:1