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

📄 amf_muxnx1.c

📁 ADI SHARC DSP 音频算法标准模块库
💻 C
字号:
// Copyright(c) 2002-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/Packs/MuxDemuxPack/2.5.0/SHARC/Source/AMF_MuxNx1.c#2 $ 
// Part of : VisualAudio MuxDemuxPack V2.0.1 
// Updated : $Date: 2006/10/12 $ by $Author: Fernando $

#include "AMF_MuxNx1.h"

void AMF_MuxNx1_Render(AMF_MuxNx1 * restrict instance,AMF_Signal * restrict * buffers, int tickSize);

#if 0    // Example code

//#pragma optimize_for_speed
SEG_MOD_FAST_CODE  void AMF_MuxNx1_Render(AMF_MuxNx1 * restrict instance,AMF_Signal * restrict * buffers,int tickSize) {
    int i;
    int inputCount = instance->b.inputPinCount;
    AMF_Signal * restrict in;
    AMF_Signal * restrict out;
       int Selectpin = instance->Select ;
    
    
    out = buffers[inputCount];
    in = buffers[Selectpin];

    // Should be able to use SIMD in this loop
    for (i=0; i<tickSize; i++)
        out[i] = in[i];
}
#endif

/*
 * Module baseclass structure describing the module environment.
 */
SEG_MOD_SLOW_CONST const AMF_ModuleVariableClass AMFClassMuxNx1 = {
    
    /* Flags */
    AMFModuleClassFlag_VARIABLE_PIN_COUNT,
     
    /* Render function */
    (AMF_RenderFunction)AMF_MuxNx1_Render, 
    
    /* Default bypass */
    (void *)0
};






⌨️ 快捷键说明

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