-
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
-
u盘固件源代码,很不容易找到的,分享一下
u盘固件源代码,很不容易找到的,分享一下-u disk firmware source code, is not easy to find and share
- 2022-03-09 11:46:17下载
- 积分:1
-
GPL162001 the UART module demo program
GPL162001通用异步收发器模块演示程序
- 2022-06-20 05:56:59下载
- 积分:1
-
64点阵C程序有移动功能具有时间显示,可设置时间,断电保存...
64点阵C程序有移动功能具有时间显示,可设置时间,断电保存-64 dot-matrix C procedures with mobile features the time display can be set-up times, power save
- 2022-01-20 23:59:53下载
- 积分:1
-
Uart串口自发送程序,单片机自动给上位机传送数据
Uart串口自发送程序,单片机自动给上位机传送数据-Usart auto send data
- 2023-01-06 12:05:03下载
- 积分:1
-
本文件为单片机的延时子程序,采用8051f040系列单片机,供单片机初学者学习使用。...
本文件为单片机的延时子程序,采用8051f040系列单片机,供单片机初学者学习使用。-This document is for single-chip delay of the subroutine, the use of single-chip 8051f040 series for beginners to learn the use of single-chip microcomputer.
- 2022-07-22 01:17:54下载
- 积分:1
-
AVR单片机M16L绝对可以用的4*4键盘程序,附连接图.
AVR单片机M16L绝对可以用的4*4键盘程序,附连接图.-AVR Singlechip M16L can definitely use 4* 4 keyboard procedures, attached connection diagram.
- 2022-02-02 04:41:24下载
- 积分:1
-
This is 192* 64 LCD LCD waveform to achieve. LCD model is used OCMJ4* 12B, which...
这是用192*64液晶实现的波形液晶显示。用的液晶型号是OCMJ4*12B,这是用正弦函数显示的。-This is 192* 64 LCD LCD waveform to achieve. LCD model is used OCMJ4* 12B, which is shown by sine function.
- 2022-03-03 20:58:12下载
- 积分:1
-
51 单片机的经常用到的子函数,非常具有参考价值。
51 单片机的经常用到的子函数,非常具有参考价值。-51 SCM Functions frequently used, very useful.
- 2022-04-06 12:29:22下载
- 积分:1
-
i2c transmission driven by the needs of the first documents mega16 MCU
i2c的传输的驱动所需要的头文件 用mega16单片机实现-i2c transmission driven by the needs of the first documents mega16 MCU
- 2022-05-25 05:04:30下载
- 积分:1