📄 amf_capturen.c
字号:
// Copyright(c) 2006 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_CaptureN.c#3 $
// Part of : VisualAudio V2.5.0
// Updated : $Date: 2006/10/12 $ by $Author: Fernando $
#include "AudioProcessing.h"
#include "AMF_CaptureN.h"
SEG_MOD_FAST_CODE void
AMF_CaptureN_Render (AMF_CaptureN * restrict instance, AMF_Signal * restrict * buffers, int tickSize)
{
// Function code for the N channel mono_pcm capture module
int numIn;
int channel;
int sample;
float *in;
float *ptr;
numIn = instance->b.inputPinCount;
for (channel = 0; channel < numIn; channel++)
{
// This is where the data should be written
ptr = instance->value + (channel * tickSize);
in = buffers[channel];
for (sample = 0; sample < tickSize; sample++)
{
*ptr++ = *in++;
}
}
}
#ifdef CUSTOMBYPASSFUNCTION
SEG_MOD_FAST_CODE void
AMF_CaptureN_Bypass (AMF_CaptureN * restrict instance, AMF_Signal * restrict * buffers, int tickSize)
{
}
#endif
SEG_MOD_SLOW_CONST const AMF_ModuleVariableClass AMFClassCaptureN = {
/* Flags */
AMFModuleClassFlag_VARIABLE_PIN_COUNT,
/* Render function */
(AMF_RenderFunction) AMF_CaptureN_Render,
/* Default bypass */
(AMF_RenderFunction) 0
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -