308 |
} |
} |
309 |
|
|
310 |
bool LinuxSamplerPlugin::IsTypeSupported(String sTypeName, String sTypeVersion) { |
bool LinuxSamplerPlugin::IsTypeSupported(String sTypeName, String sTypeVersion) { |
311 |
return sTypeName == gig::libraryName() && |
// does LS use libgig for the instrument, which basically means is the |
312 |
sTypeVersion == gig::libraryVersion(); |
// instrument loaded by the sampler a .gig file? |
313 |
|
if (sTypeName != gig::libraryName()) return false; |
314 |
|
|
315 |
|
// the libgig version used by sampler and the one used by gigedit need |
316 |
|
// to be binary compatible for live-editing mode to work |
317 |
|
if (sTypeVersion == gig::libraryVersion()) return true; |
318 |
|
std::cerr << |
319 |
|
"ERROR: Installed Gigedit version is binary incompatible to " |
320 |
|
"installed LinuxSampler version!\n" |
321 |
|
"[Cause: Gigedit is using libgig " + gig::libraryVersion() + |
322 |
|
" whereas LinuxSampler is using libgig " + sTypeVersion + "]\n"; |
323 |
|
return false; |
324 |
} |
} |
325 |
|
|
326 |
String LinuxSamplerPlugin::Name() { |
String LinuxSamplerPlugin::Name() { |