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

📄 amf_agclimitercoretable.h

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

// 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_AGCLimiterCore.h#3 $ 
// Part of : VisualAudio V2.5.0 
// Updated : $Date: 2007-08-08 12:38:53 +0530 (Wed, 08 Aug 2007) $ by $Author: kdasari2 $




#include "AudioProcessing.h"

#ifdef __ECC__

#include "VA_GeneralHelperFunctions.h"

typedef struct {
    
    AMF_Module b;
    
    // Parameters:
    float gain;
    float attackCoef, decayCoef;
     
    // State:
    float envState;
    float *inputTable,*outputTable;
    int Table_points;
    
} AMF_AGCLimiterCoreTable;

extern const AMF_ModuleClass AMFClassAGCLimiterCoreTable;

float AMF_AGCLimiterCoreTable_TranslateEnvFollowerT60(float T60Milliseconds, float samplingRate);

float AMF_AGCLimiterCoreTable_TranslateSlope(float ratio);

float AMF_AGCLimiterCoreTable_TranslateSharpnessFactor(float kneeDepth);

void AMF_AGCLimiterCoreTable_Render(AMF_AGCLimiterCoreTable * restrict instance,float * restrict * buffers, int tickSize);

#else

// ASM declarations for offsets from start of instance (must be kept in synch with C version)
               
#define AMF_AGCLimiterCoreTable_Gain                 (AMF_Module_SIZE)// defined in AudioProcessing.h
#define AMF_AGCLimiterCoreTable_AttackCoef           (AMF_Module_SIZE+1)
#define AMF_AGCLimiterCoreTable_DecayCoef            (AMF_Module_SIZE+2)
#define AMF_AGCLimiterCoreTable_EnvState             (AMF_Module_SIZE+3)
#define AMF_AGCLimiterCoreTable_InputTable           (AMF_Module_SIZE+4)
#define AMF_AGCLimiterCoreTable_OutputTable          (AMF_Module_SIZE+5)
#define AMF_AGCLimiterCoreTable_TablePoints          (AMF_Module_SIZE+6)

#endif


#endif

⌨️ 快捷键说明

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