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 { |
120 |
* @param NewCount The new number of MIDI input devices. |
* @param NewCount The new number of MIDI input devices. |
121 |
*/ |
*/ |
122 |
virtual void MidiDeviceCountChanged(int NewCount) = 0; |
virtual void MidiDeviceCountChanged(int NewCount) = 0; |
123 |
|
|
124 |
|
/** |
125 |
|
* Invoked right before the supplied MIDI input device is going |
126 |
|
* to be destroyed. |
127 |
|
* @param pDevice MidiInputDevice to be deleted |
128 |
|
*/ |
129 |
|
virtual void MidiDeviceToBeDestroyed(MidiInputDevice* pDevice) = 0; |
130 |
|
|
131 |
|
/** |
132 |
|
* Invoked to inform that a new MidiInputDevice has just been |
133 |
|
* created. |
134 |
|
* @param pDevice newly created MidiInputDevice |
135 |
|
*/ |
136 |
|
virtual void MidiDeviceCreated(MidiInputDevice* pDevice) = 0; |
137 |
|
}; |
138 |
|
|
139 |
|
/** |
140 |
|
* This class is used as a listener, which is notified |
141 |
|
* when the number of MIDI input ports is changed. |
142 |
|
*/ |
143 |
|
class MidiPortCountListener { |
144 |
|
public: |
145 |
|
/** |
146 |
|
* Invoked when the number of MIDI input ports has changed. |
147 |
|
* @param NewCount The new number of MIDI input ports. |
148 |
|
*/ |
149 |
|
virtual void MidiPortCountChanged(int NewCount) = 0; |
150 |
|
|
151 |
|
/** |
152 |
|
* Invoked right before the supplied MIDI input port is going |
153 |
|
* to be destroyed. |
154 |
|
* @param pPort MidiInputPort to be deleted |
155 |
|
*/ |
156 |
|
virtual void MidiPortToBeRemoved(MidiInputPort* pPort) = 0; |
157 |
|
|
158 |
|
/** |
159 |
|
* Invoked to inform that a new MidiInputPort has just been |
160 |
|
* added. |
161 |
|
* @param pPort newly created MidiInputPort |
162 |
|
*/ |
163 |
|
virtual void MidiPortAdded(MidiInputPort* pPort) = 0; |
164 |
}; |
}; |
165 |
|
|
166 |
/** |
/** |