⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtagc32.h

📁 ARM平台下的数字音频AGC处理源代码 采用EP9302,对数字音频进行AGC处理
💻 H
字号:
#ifndef _GTAGC32_H
#define _GTAGC32_H

#define   MAX24bit   (1024*1024*8)#define	AD_RATIO	0.96 //最大值 与 0dB对应电平 的比值#define 	REF_0dB	((float)(MAX24bit/AD_RATIO))typedef struct{	int	sample_max;	int	vu_value;	int	ppm_value;		}GtPredata;
typedef struct //0~对应左声道, 1~对应右声道
{	int			sample_max[2];	float		pre_sum[2]; /*宸﹀0閬撲负0, 鍙冲0閬撲负1*/	float		post_sum[2];
	int			pre_max[2]; /*宸﹀0閬撲负0, 鍙冲0閬撲负1*/	int			post_max[2];
	int			pre_max1[2]; /*宸﹀0閬撲负0, 鍙冲0閬撲负1*/	int			post_max1[2];
	int			counter[2];
	float		gain[2];	float		pk;
	long		peak;
	int			silence_counter[2];
	long		silence_threshold;
	long		active_threshold;

}GtAGC; 

GtAGC* NewGtagc(int peek_leval, int  dynamic_theshold, int noise_threshold, int inputmode);int		SetGtagc(GtAGC *agc, int peek_leval, int  dynamic_theshold, int noise_threshold, int inputmode);
void DoGtagc(GtAGC *agc, long *buffer, int len, int v, int bpcount,int adaes3);
void DeleteGtagc(GtAGC *agc);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -