📄 amf_volumefletchermunson_s.h
字号:
#ifndef _AMF_VOLUMEFLETCHERMUNSON_S_
#define _AMF_VOLUMEFLETCHERMUNSON_S_
// 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_S.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_S_SetGain(instance, gainTarget) AMF_SetFMGain((instance), (gainTarget))
// C declarations
typedef struct {
float state1[2], state2[2];
} AMF_VolumeFletcherMunson_SAux;
typedef struct {
AMF_Module b;
// Parameters:
float ampSmoothing;
float ampTarget, lowAmpTarget, b0, b1;
// State:
float amp, lowAmp;
AMF_VolumeFletcherMunson_SAux *aux; // PM data for inner loops.
} AMF_VolumeFletcherMunson_S;
extern const AMF_ModuleClass AMFClassVolumeFletcherMunson_S;
#else
#define AMF_VolumeFletcherMunson_S_AmpSmoothing AMF_Module_SIZE // defined in AudioProcessing.h
#define AMF_VolumeFletcherMunson_S_AmpTarget (AMF_Module_SIZE+1)
#define AMF_VolumeFletcherMunson_S_LowAmpTarget (AMF_Module_SIZE+2)
#define AMF_VolumeFletcherMunson_S_b0 (AMF_Module_SIZE+3)
#define AMF_VolumeFletcherMunson_S_b1 (AMF_Module_SIZE+4)
#define AMF_VolumeFletcherMunson_S_Amp (AMF_Module_SIZE+5)
#define AMF_VolumeFletcherMunson_S_LowAmp (AMF_Module_SIZE+6)
#define AMF_VolumeFletcherMunson_S_AuxPtr (AMF_Module_SIZE+7)
#define AMF_VolumeFletcherMunson_S_Aux_State1 (0)
#define AMF_VolumeFletcherMunson_S_Aux_State2 (2)
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -