/[svn]/linuxsampler/trunk/src/effects/EffectControl.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/effects/EffectControl.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2134 by schoenebeck, Sat Sep 18 09:24:41 2010 UTC revision 2135 by schoenebeck, Thu Sep 30 20:00:43 2010 UTC
# Line 11  EffectControl::EffectControl() { Line 11  EffectControl::EffectControl() {
11      type = TYPE_BOOL;      type = TYPE_BOOL;
12  }  }
13    
14    EffectControl::~EffectControl() {
15    }
16    
17  void EffectControl::SetValue(float val) throw (Exception) {  void EffectControl::SetValue(float val) throw (Exception) {
18      if (minValue && val < *minValue)      if (minValue && val < *minValue)
19          throw Exception("Effect control value smaller than minimum allowed value");          throw Exception("Effect control value smaller than minimum allowed value");
# Line 56  optional<float> EffectControl::MaxValue( Line 59  optional<float> EffectControl::MaxValue(
59      return maxValue;      return maxValue;
60  }  }
61    
62    std::vector<float> EffectControl::Possibilities() const {
63        return possibilities;
64    }
65    
66  void EffectControl::SetDefaultValue(float val) {  void EffectControl::SetDefaultValue(float val) {
67      defaultValue = val;      defaultValue = val;
68  }  }
# Line 68  void EffectControl::SetMaxValue(float va Line 75  void EffectControl::SetMaxValue(float va
75      maxValue = val;      maxValue = val;
76  }  }
77    
78    void EffectControl::SetPossibilities(const std::vector<float>& v) {
79        possibilities = v;
80    }
81    
82  void EffectControl::SetType(Type_t t) {  void EffectControl::SetType(Type_t t) {
83      type = t;      type = t;
84  }  }

Legend:
Removed from v.2134  
changed lines
  Added in v.2135

  ViewVC Help
Powered by ViewVC