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"); |
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 |
} |
} |
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 |
} |
} |