/[svn]/gigedit/trunk/src/plugin/linuxsamplerplugin.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/plugin/linuxsamplerplugin.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4007 by persson, Sat Feb 2 17:53:36 2019 UTC revision 4008 by schoenebeck, Wed Dec 22 14:40:54 2021 UTC
# Line 308  void LinuxSamplerPlugin::__requestSample Line 308  void LinuxSamplerPlugin::__requestSample
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() {

Legend:
Removed from v.4007  
changed lines
  Added in v.4008

  ViewVC Help
Powered by ViewVC