3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2007 Christian Schoenebeck * |
* Copyright (C) 2005 - 2009 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This library is free software; you can redistribute it and/or modify * |
* This library is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
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 |
/** |
/** |
84 |
String FormatVersion; |
String FormatVersion; |
85 |
String Product; |
String Product; |
86 |
String Artists; |
String Artists; |
87 |
|
uint8_t KeyBindings[128]; |
88 |
|
uint8_t KeySwitchBindings[128]; |
89 |
}; |
}; |
90 |
|
|
91 |
/** |
/** |
129 |
static void LoadInstrumentInBackground(instrument_id_t ID, EngineChannel* pEngineChannel); |
static void LoadInstrumentInBackground(instrument_id_t ID, EngineChannel* pEngineChannel); |
130 |
|
|
131 |
/** |
/** |
132 |
|
* Stops the background thread that has been started by |
133 |
|
* LoadInstrumentInBackground. |
134 |
|
*/ |
135 |
|
static void StopBackgroundThread(); |
136 |
|
|
137 |
|
/** |
138 |
* Returns the name of the given instrument as reflected by its |
* Returns the name of the given instrument as reflected by its |
139 |
* file. |
* file. |
140 |
* |
* |