-
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
-
51个外部中断例程
51外部中断例程-51 external interrupt routines
- 2022-08-10 23:58:13下载
- 积分:1
-
家用热水器,用汇编编写,支持代码贡献机制,好东西大家分享
家用热水器,用汇编编写,支持代码贡献机制,好东西大家分享-Household water heaters, with the compilation prepared to support the code contribution mechanism to share good things
- 2022-01-24 10:23:26下载
- 积分:1
-
一个对4X4数字键盘进行行&列扫描,获取扫描码的程序,支持符合键,串键,软件去抖.
一个对4X4数字键盘进行行&列扫描,获取扫描码的程序,支持符合键,串键,软件去抖.-one pair of 4x4 digital keyboard ranks scanning, access code scanning procedures, with key support and collaborate keys, software to tremble.
- 2022-11-16 15:50:05下载
- 积分:1
-
测试温度和湿度以及烟雾报警器,硬件应使用…
测试温湿度以及烟感报警,硬件采用长应8000系列-Test temperature and humidity as well as the Smoke Alarm, hardware should be used long-8000 Series
- 2022-07-22 09:10:03下载
- 积分:1
-
一个解码器程序,内含派尔高-D协议,自已写的,只写了一个协议.同时增加了一个串口,用51单片机的一个脚进行模拟串行口.有兴趣可以看一下....
一个解码器程序,内含派尔高-D协议,自已写的,只写了一个协议.同时增加了一个串口,用51单片机的一个脚进行模拟串行口.有兴趣可以看一下.-a decoder procedures intron Pelco-D agreements own writing, just write an agreement. While an additional serial port, using the MCU 51 feet for a simulated serial port. Interested can look at.
- 2022-02-11 11:53:21下载
- 积分:1
-
A complete STC89LE5412 procedures, to achieve 2
一个完整的STC89LE5412程序,实现2路电压,2路电流采样,滤波,和瞬间功率峰值计算-A complete STC89LE5412 procedures, to achieve 2-way voltage, 2-way current sampling, filtering, and calculation of instantaneous peak power
- 2022-01-25 20:26:38下载
- 积分:1
-
DK3400_3420 USB R_W source code
DK3400_3420 USB R_W source code - Keil-DK3400_3420 USB R_W source code- Keil
- 2022-10-12 01:00:04下载
- 积分:1
-
C51七种实用子程序集3
C51七种实用子程序集3-C51 seven practical subroutine Set 3
- 2022-10-30 21:05:03下载
- 积分:1
-
如果你想学习C51的越快,这个资源也许会给你一个帮手。
学习C51的同学, 可以看看这个 , 有了这个, 保你学习进度可以提升3成速度。-If you wanna learn C51 more fast, this resoure maybe give you a helper.
- 2023-06-01 20:25:02下载
- 积分:1