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

📄 amf_agccompressorcoretable.h

📁 ADI SHARC DSP 音频算法标准模块库
💻 H
字号:
#ifndef _AMF_AGCCOMPRESSORCORETABLE_
#define _AMF_AGCCOMPRESSORCORETABLE_

// Copyright(c) 2005 Analog Devices, Inc. All Rights Reserved.
// This software is proprietary and confidential to Analog Devices, Inc. and its licensors.

// File    : $Id: //depot/development/visualaudio/modules/2.5.0/SHARC/Include/AMF_AGCCompressorCore.h#3 $ 
// Part of : VisualAudio V2.5.0 
// Updated : $Date: 2006/10/12 $ by $Author: Fernando $



 
#include "AudioProcessing.h"

#ifdef __ECC__

#include "VA_GeneralHelperFunctions.h"


// C declarations
typedef struct {
    
    AMF_Module b;
    
    // Parameters:
	int Table_points;
    float gain, slope; 
    float attackCoef, decayCoef, attackCoefSmoothing, decayCoefSmoothing;
    
    // State:
    float envState;
    float smoothingState;
	float *inputTable,*outputTable;
	int Hold;
	int Statecount;
    
} AMF_AGCCompressorCoreTable;

extern const AMF_ModuleClass AMFClassAGCCompressorCoreTable;

float AMF_AGCCompressorCoreTable_TranslateEnvFollowerT60(float T60, int tickSize, float samplingRate);
float AMF_AGCCompressorCoreTable_TranslateSmoothingFilterT60(float T60, int tickSize, float samplingRate);
float AMF_AGCCompressorCoreTable_TranslateSlope(float ratio);


#else

// ASM declarations for offsets from start of instance (must be kept in synch with C version)

#define AMF_AGCCompressorCoreTable_TablePoints                  (AMF_Module_SIZE)
#define AMF_AGCCompressorCoreTable_Gain							(AMF_Module_SIZE+1)
#define AMF_AGCCompressorCoreTable_Slope						(AMF_Module_SIZE+2)
#define AMF_AGCCompressorCoreTable_AttackCoef					(AMF_Module_SIZE+3)
#define AMF_AGCCompressorCoreTable_DecayCoef					(AMF_Module_SIZE+4)
#define AMF_AGCCompressorCoreTable_AttackCoefSmoothing			(AMF_Module_SIZE+5)
#define AMF_AGCCompressorCoreTable_DecayCoefSmoothing			(AMF_Module_SIZE+6)
#define AMF_AGCCompressorCoreTable_EnvState						(AMF_Module_SIZE+7)
#define AMF_AGCCompressorCoreTable_SmoothingState				(AMF_Module_SIZE+8)
#define AMF_AGCCompressorCoreTable_InputTable					(AMF_Module_SIZE+9)
#define AMF_AGCCompressorCoreTable_OutputTable					(AMF_Module_SIZE+10)
#define AMF_AGCCompressorCoreTable_Hold							(AMF_Module_SIZE+11)
#define AMF_AGCCompressorCoreTable_Statecount					(AMF_Module_SIZE+12)

#endif

#endif

⌨️ 快捷键说明

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