146 |
static void AddOrReplaceEntry(int Map, midi_prog_index_t Index, entry_t Entry, bool bInBackground = false) throw (Exception); |
static void AddOrReplaceEntry(int Map, midi_prog_index_t Index, entry_t Entry, bool bInBackground = false) throw (Exception); |
147 |
|
|
148 |
/** |
/** |
149 |
|
* Gets an entry from the MIDI instrument map. |
150 |
|
* |
151 |
|
* @param Map - map index |
152 |
|
* @param Index - index of entry to retrieve |
153 |
|
*/ |
154 |
|
static entry_t GetEntry(int Map, uint MidiBank, uint MidiProg); |
155 |
|
|
156 |
|
/** |
157 |
* Remove an existing entry from the MIDI instrument map. |
* Remove an existing entry from the MIDI instrument map. |
158 |
* |
* |
159 |
* @param Map - map index |
* @param Map - map index |
230 |
static int GetMapCount(); |
static int GetMapCount(); |
231 |
|
|
232 |
/** |
/** |
233 |
|
* Returns the amount of currently available MIDI instruments in all maps. |
234 |
|
* @param Map - ID of the map |
235 |
|
*/ |
236 |
|
static int GetInstrumentCount(); |
237 |
|
|
238 |
|
/** |
239 |
|
* Returns the amount of currently available MIDI instruments in the specified map. |
240 |
|
* @param Map - ID of the map |
241 |
|
*/ |
242 |
|
static int GetInstrumentCount(int Map); |
243 |
|
|
244 |
|
/** |
245 |
* Gets the ID of the default map. |
* Gets the ID of the default map. |
246 |
* For now, the default map is the first available map. When |
* For now, the default map is the first available map. When |
247 |
* the default map is removed, the default map becomes the next available map. |
* the default map is removed, the default map becomes the next available map. |
288 |
friend class MidiInputPort; // allow MidiInputPort to access GetEntry() |
friend class MidiInputPort; // allow MidiInputPort to access GetEntry() |
289 |
|
|
290 |
private: |
private: |
291 |
|
/** |
292 |
|
* Sets the load mode of the specified entry. |
293 |
|
* The following field should be set before calling this method: |
294 |
|
* pEntry->EngineName, pEntry->InstrumentFile, pEntry->InstrumentIndex |
295 |
|
*/ |
296 |
|
static void SetLoadMode(entry_t* pEntry); |
297 |
|
|
298 |
static ListenerList<MidiInstrumentCountListener*> llMidiInstrumentCountListeners; |
static ListenerList<MidiInstrumentCountListener*> llMidiInstrumentCountListeners; |
299 |
static ListenerList<MidiInstrumentInfoListener*> llMidiInstrumentInfoListeners; |
static ListenerList<MidiInstrumentInfoListener*> llMidiInstrumentInfoListeners; |
300 |
static ListenerList<MidiInstrumentMapCountListener*> llMidiInstrumentMapCountListeners; |
static ListenerList<MidiInstrumentMapCountListener*> llMidiInstrumentMapCountListeners; |