3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2007 Christian Schoenebeck * |
* Copyright (C) 2005 - 2013 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
58 |
class ParameterName : public DeviceRuntimeParameterString { |
class ParameterName : public DeviceRuntimeParameterString { |
59 |
public: |
public: |
60 |
ParameterName(String s) : DeviceRuntimeParameterString(s) {} |
ParameterName(String s) : DeviceRuntimeParameterString(s) {} |
61 |
virtual String Description() { return "Arbitrary name"; } |
virtual String Description() OVERRIDE { return "Arbitrary name"; } |
62 |
virtual bool Fix() { return false; } |
virtual bool Fix() OVERRIDE { return false; } |
63 |
virtual std::vector<String> PossibilitiesAsString() { return std::vector<String>(); } |
virtual std::vector<String> PossibilitiesAsString() OVERRIDE { return std::vector<String>(); } |
64 |
virtual void OnSetValue(String s) { /* nothing to do */ } |
virtual void OnSetValue(String s) OVERRIDE { /* nothing to do */ } |
65 |
}; |
}; |
66 |
|
|
67 |
class ParameterIsMixChannel : public DeviceRuntimeParameterBool { |
class ParameterIsMixChannel : public DeviceRuntimeParameterBool { |
68 |
public: |
public: |
69 |
ParameterIsMixChannel(bool b) : DeviceRuntimeParameterBool(b) {} |
ParameterIsMixChannel(bool b) : DeviceRuntimeParameterBool(b) {} |
70 |
virtual String Description() { return "Whether real channel or mixed to another channel"; } |
virtual String Description() OVERRIDE { return "Whether real channel or mixed to another channel"; } |
71 |
virtual bool Fix() { return true; } |
virtual bool Fix() OVERRIDE { return true; } |
72 |
virtual void OnSetValue(bool b) throw (Exception) { /* cannot happen, as parameter is fix */ } |
virtual void OnSetValue(bool b) throw (Exception) OVERRIDE { /* cannot happen, as parameter is fix */ } |
73 |
}; |
}; |
74 |
|
|
75 |
class ParameterMixChannelDestination : public DeviceRuntimeParameterInt { |
class ParameterMixChannelDestination : public DeviceRuntimeParameterInt { |
76 |
public: |
public: |
77 |
ParameterMixChannelDestination(int i) : DeviceRuntimeParameterInt(i) {} |
ParameterMixChannelDestination(int i) : DeviceRuntimeParameterInt(i) {} |
78 |
virtual String Description() { return "Destination channel of this mix channel"; } |
virtual String Description() OVERRIDE { return "Destination channel of this mix channel"; } |
79 |
virtual bool Fix() { return true; } |
virtual bool Fix() OVERRIDE { return true; } |
80 |
virtual optional<int> RangeMinAsInt() { return optional<int>::nothing; /*TODO: needs to be implemented */ } |
virtual optional<int> RangeMinAsInt() OVERRIDE { return optional<int>::nothing; /*TODO: needs to be implemented */ } |
81 |
virtual optional<int> RangeMaxAsInt() { return optional<int>::nothing; /*TODO: needs to be implemented */ } |
virtual optional<int> RangeMaxAsInt() OVERRIDE { return optional<int>::nothing; /*TODO: needs to be implemented */ } |
82 |
virtual std::vector<int> PossibilitiesAsInt() { return std::vector<int>(); /*TODO: needs to be implemented */ } |
virtual std::vector<int> PossibilitiesAsInt() OVERRIDE { return std::vector<int>(); /*TODO: needs to be implemented */ } |
83 |
virtual void OnSetValue(int i) throw (Exception) { /*TODO: needs to be implemented */ } |
virtual void OnSetValue(int i) throw (Exception) OVERRIDE { /*TODO: needs to be implemented */ } |
84 |
}; |
}; |
85 |
|
|
86 |
// attributes |
// attributes |