1 // ------------------------------------------------------------------------
2 // eca-operator.cpp: Operators are ecasound objects which can be used
3 //                   as targets for dynamic control.
4 // Copyright (C) 2000 Kai Vehmanen
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
19 // ------------------------------------------------------------------------
20 
21 #include <kvu_dbc.h>
22 
23 #include "eca-operator.h"
24 
~OPERATOR(void)25 OPERATOR::~OPERATOR (void) { }
26 
parameter_description(int param,struct PARAM_DESCRIPTION * pd) const27 void OPERATOR::parameter_description(int param, struct PARAM_DESCRIPTION *pd) const
28 {
29   DBC_REQUIRE(param > 0);
30   DBC_REQUIRE(param <= number_of_params());
31 
32   pd->default_value = get_parameter(param);
33   pd->description = get_parameter_name(param);
34   pd->bounded_above = false;
35   pd->upper_bound = 0.0f;
36   pd->bounded_below = false;
37   pd->lower_bound = 0.0f;
38   pd->toggled = false;
39   pd->integer = false;
40   pd->logarithmic = false;
41   pd->output = false;
42 }
43