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

📄 amf_volumefletchermunson.h

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

// 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_VolumeFletcherMunson.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"


//Macro to set VolumeFletcherMunson_S in dB (-192.0 - 0.0)
// Bass Boost calculated via 2nd order polynomial
#define AMF_VolumeFletcherMunson_SetGain(instance, gainTarget) AMF_SetFMGain((instance), (gainTarget))


// C declarations
typedef struct {
    
    float state1, state2;        // accessed from inner loop, so must be on-chip, hence the aux
    
} AMF_VolumeFletcherMunson_Aux;

typedef struct {
    
    AMF_Module b;
 
    // Parameters:
    float ampSmoothing;
    float ampTarget, lowAmpTarget, b0, b1; 

    // State:
    float amp, lowAmp; 
    AMF_VolumeFletcherMunson_Aux *aux;
    
} AMF_VolumeFletcherMunson;

extern const AMF_ModuleClass AMFClassVolumeFletcherMunson;

#else


#define AMF_VolumeFletcherMunson_AmpSmoothing    AMF_Module_SIZE  // defined in AudioProcessing.h
#define AMF_VolumeFletcherMunson_AmpTarget         (AMF_Module_SIZE+1)
#define AMF_VolumeFletcherMunson_LowAmpTarget     (AMF_Module_SIZE+2)
#define AMF_VolumeFletcherMunson_b0             (AMF_Module_SIZE+3)
#define AMF_VolumeFletcherMunson_b1             (AMF_Module_SIZE+4)
#define AMF_VolumeFletcherMunson_Amp            (AMF_Module_SIZE+5)
#define AMF_VolumeFletcherMunson_LowAmp            (AMF_Module_SIZE+6)
#define AMF_VolumeFletcherMunson_AuxPtr            (AMF_Module_SIZE+7)

#define AMF_VolumeFletcherMunson_Aux_State1        (0)
#define AMF_VolumeFletcherMunson_Aux_State2        (1)


#endif

#endif

⌨️ 快捷键说明

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