00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
#ifndef _VRNOP_H_
00019
#define _VRNOP_H_
00020
00021
#include <VrSigProc.h>
00022
00023
00024
template<
class ioType>
00025 class VrNop :
public VrSigProc {
00026
protected:
00027
public:
00028 virtual const char *
name() {
return "VrNop"; }
00029
virtual int work(
VrSampleRange output,
void *o[],
00030
VrSampleRange inputs[],
void *i[]);
00031 VrNop():
VrSigProc(1, sizeof(ioType), sizeof(ioType)) {};
00032 };
00033
00034
template<
class ioType>
int
00035 VrNop<ioType>::work(
VrSampleRange output,
void *ao[],
00036
VrSampleRange inputs[],
void *ai[])
00037 {
00038 ioType **i = (ioType **)ai;
00039 ioType **o = (ioType **)ao;
00040
00041 memcpy(o[0],i[0],output.
size*
sizeof(ioType));
00042
return output.
size;
00043 }
00044
00045
#endif