📄 amf_mult2add1_s.c
字号:
// 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/Source/AMF_Mult2Add1_S.c#3 $
// Part of : VisualAudio V2.5.0
// Updated : $Date: 2006/10/12 $ by $Author: Fernando $
#include "AMF_Mult2Add1_S.h"
void AMF_Mult2Add1_S_Render(AMF_Mult2Add1_S * restrict instance,float * restrict * buffers,int tickSize);
// NOTE: The C version of this function is for reference only (it is
// intended just to show the general algorithm that the module
// uses), and it may not have been fully tested
#if 0
SEG_MOD_FAST_CODE void AMF_Mult2Add1_S_Render(AMF_Mult2Add1_S * restrict instance,float * restrict * buffers,int tickSize) {
int i;
float *in1 = buffers[0];
float *in2 = buffers[1];
float *in3 = buffers[2];
float *out = buffers[3];
for (i=0; i<2*tickSize; i++) {
out[i] = (in1[i]*in2[i]) + in3[i];
}
}
#endif
SEG_MOD_SLOW_CONST const AMF_ModuleClass AMFClassMult2Add1_S = {
/* Flags */
0,
/* Render function */
(AMF_RenderFunction)AMF_Mult2Add1_S_Render,
/* Default bypass */
(void *)0,
/* Input descriptor - 3 inputs, and they are stereo. */
3, AMF_StereoPin(0)|AMF_StereoPin(1)|AMF_StereoPin(2),
/* Output descriptor - 1 output, and it is stereo. */
1, AMF_StereoPin(0),
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -