00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "ControlSource.hxx"
00023 #include "ProcessingFactory.hxx"
00024
00025
00026 namespace CLAM
00027 {
00028 namespace Hidden
00029 {
00030 static const char * metadata[] = {
00031 "key", "ControlSource",
00032 "category", "Controls",
00033 "description", "ControlSource",
00034 0
00035 };
00036 static FactoryRegistrator<ProcessingFactory, ControlSource> reg = metadata;
00037 }
00038
00039
00040 bool ControlSource::Do( const float value )
00041 {
00042 mOutput.SendControl( (TControlData)value);
00043 return true;
00044 }
00045
00046 bool ControlSource::ConcreteConfigure(const ProcessingConfig &c)
00047 {
00048 CopyAsConcreteConfig(mConf,c);
00049 return true;
00050 }
00051
00052 }
00053