70 |
bool operator<(const instrument_id_t& o) const { |
bool operator<(const instrument_id_t& o) const { |
71 |
return (Index < o.Index || (Index == o.Index && FileName < o.FileName)); |
return (Index < o.Index || (Index == o.Index && FileName < o.FileName)); |
72 |
} |
} |
73 |
|
|
74 |
|
bool operator==(const instrument_id_t& o) const { |
75 |
|
return (Index == o.Index && FileName == o.FileName); |
76 |
|
} |
77 |
|
}; |
78 |
|
|
79 |
|
/** |
80 |
|
* Rather abstract informations about an instrument. |
81 |
|
*/ |
82 |
|
struct instrument_info_t { |
83 |
|
String InstrumentName; |
84 |
|
String FormatVersion; |
85 |
|
String Product; |
86 |
|
String Artists; |
87 |
|
uint8_t KeyBindings[128]; |
88 |
|
uint8_t KeySwitchBindings[128]; |
89 |
}; |
}; |
90 |
|
|
91 |
/** |
/** |
173 |
* instrument editor is registered to the sampler |
* instrument editor is registered to the sampler |
174 |
*/ |
*/ |
175 |
virtual void LaunchInstrumentEditor(instrument_id_t ID) throw (InstrumentManagerException) = 0; |
virtual void LaunchInstrumentEditor(instrument_id_t ID) throw (InstrumentManagerException) = 0; |
176 |
|
|
177 |
|
/** |
178 |
|
* Returns a list of instrument IDs of the provided instrument |
179 |
|
* file in case the provided file's format is supported. |
180 |
|
* |
181 |
|
* @throws InstrumentManagerException if the format of the |
182 |
|
* provided instrument file is not supported |
183 |
|
*/ |
184 |
|
virtual std::vector<instrument_id_t> GetInstrumentFileContent(String File) throw (InstrumentManagerException) = 0; |
185 |
|
|
186 |
|
/** |
187 |
|
* Get detailed informations about the provided instrument file. |
188 |
|
* |
189 |
|
* @throws InstrumentManagerException if the format of the |
190 |
|
* provided instrument file is not supported |
191 |
|
*/ |
192 |
|
virtual instrument_info_t GetInstrumentInfo(instrument_id_t ID) throw (InstrumentManagerException) = 0; |
193 |
}; |
}; |
194 |
|
|
195 |
} |
} |