28 |
|
|
29 |
// just symbol prototyping |
// just symbol prototyping |
30 |
class SamplerChannel; |
class SamplerChannel; |
31 |
|
class MidiInputDevice; |
32 |
|
class MidiInputPort; |
33 |
|
|
34 |
template<class L> |
template<class L> |
35 |
class ListenerList { |
class ListenerList { |
97 |
}; |
}; |
98 |
|
|
99 |
/** |
/** |
100 |
|
* This class exists as convenience for creating listener objects. |
101 |
|
* The methods in this class are empty. |
102 |
|
*/ |
103 |
|
class ChannelCountAdapter : public ChannelCountListener { |
104 |
|
public: |
105 |
|
virtual void ChannelCountChanged(int NewCount) { }; |
106 |
|
virtual void ChannelAdded(SamplerChannel* pChannel) { }; |
107 |
|
virtual void ChannelToBeRemoved(SamplerChannel* pChannel) { }; |
108 |
|
}; |
109 |
|
|
110 |
|
/** |
111 |
* This class is used as a listener, which is notified |
* This class is used as a listener, which is notified |
112 |
* when the number of audio output devices is changed. |
* when the number of audio output devices is changed. |
113 |
*/ |
*/ |
131 |
* @param NewCount The new number of MIDI input devices. |
* @param NewCount The new number of MIDI input devices. |
132 |
*/ |
*/ |
133 |
virtual void MidiDeviceCountChanged(int NewCount) = 0; |
virtual void MidiDeviceCountChanged(int NewCount) = 0; |
134 |
|
|
135 |
|
/** |
136 |
|
* Invoked right before the supplied MIDI input device is going |
137 |
|
* to be destroyed. |
138 |
|
* @param pDevice MidiInputDevice to be deleted |
139 |
|
*/ |
140 |
|
virtual void MidiDeviceToBeDestroyed(MidiInputDevice* pDevice) = 0; |
141 |
|
|
142 |
|
/** |
143 |
|
* Invoked to inform that a new MidiInputDevice has just been |
144 |
|
* created. |
145 |
|
* @param pDevice newly created MidiInputDevice |
146 |
|
*/ |
147 |
|
virtual void MidiDeviceCreated(MidiInputDevice* pDevice) = 0; |
148 |
|
}; |
149 |
|
|
150 |
|
/** |
151 |
|
* This class is used as a listener, which is notified |
152 |
|
* when the number of MIDI input ports is changed. |
153 |
|
*/ |
154 |
|
class MidiPortCountListener { |
155 |
|
public: |
156 |
|
/** |
157 |
|
* Invoked when the number of MIDI input ports has changed. |
158 |
|
* @param NewCount The new number of MIDI input ports. |
159 |
|
*/ |
160 |
|
virtual void MidiPortCountChanged(int NewCount) = 0; |
161 |
|
|
162 |
|
/** |
163 |
|
* Invoked right before the supplied MIDI input port is going |
164 |
|
* to be destroyed. |
165 |
|
* @param pPort MidiInputPort to be deleted |
166 |
|
*/ |
167 |
|
virtual void MidiPortToBeRemoved(MidiInputPort* pPort) = 0; |
168 |
|
|
169 |
|
/** |
170 |
|
* Invoked to inform that a new MidiInputPort has just been |
171 |
|
* added. |
172 |
|
* @param pPort newly created MidiInputPort |
173 |
|
*/ |
174 |
|
virtual void MidiPortAdded(MidiInputPort* pPort) = 0; |
175 |
}; |
}; |
176 |
|
|
177 |
/** |
/** |