--- linuxsampler/trunk/src/drivers/midi/MidiInstrumentMapper.h 2007/03/26 17:13:36 1134 +++ linuxsampler/trunk/src/drivers/midi/MidiInstrumentMapper.h 2007/03/29 09:40:45 1135 @@ -213,6 +213,22 @@ */ static void RemoveAllMaps(); + static int GetMapCount(); + + /** + * Gets the ID of the default map. + * For now, the default map is the first available map. When + * the default map is removed, the default map becomes the next available map. + * @return The ID of the default map or -1 if the there are no maps added. + */ + static int GetDefaultMap(); + + /** + * Sets the default map. + * @param MapId The ID of the new default map. + */ + static void SetDefaultMap(int MapId); + protected: /** * Notifies listeners that the number of MIDI instruments @@ -250,6 +266,8 @@ static ListenerList llMidiInstrumentInfoListeners; static ListenerList llMidiInstrumentMapCountListeners; static ListenerList llMidiInstrumentMapInfoListeners; + + static int DefaultMap; }; } // namespace LinuxSampler