/[svn]/linuxsampler/trunk/src/engines/gig/InstrumentResourceManager.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/InstrumentResourceManager.cpp

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

revision 4008 by schoenebeck, Fri Jun 25 09:26:00 2021 UTC revision 4009 by schoenebeck, Wed Dec 22 15:01:44 2021 UTC
# Line 219  namespace LinuxSampler { namespace gig { Line 219  namespace LinuxSampler { namespace gig {
219          // find instrument editors capable to handle given instrument          // find instrument editors capable to handle given instrument
220          std::vector<String> vEditors =          std::vector<String> vEditors =
221              InstrumentEditorFactory::MatchingEditors(sDataType, sDataVersion);              InstrumentEditorFactory::MatchingEditors(sDataType, sDataVersion);
222          if (!vEditors.size())          if (!vEditors.size()) {
223                fprintf(stderr,
224                    "ERROR: Did not find a matching editor for instrument "
225                    "('%s', %d) having data structure ('%s','%s')\n",
226                    ID.FileName.c_str(), ID.Index,
227                    sDataType.c_str(), sDataVersion.c_str()
228                );
229              throw InstrumentManagerException(              throw InstrumentManagerException(
230                  "There is no instrument editor capable to handle this instrument"                  "There is no instrument editor capable to handle this instrument"
231              );              );
232            }
233          // simply use the first editor in the result set          // simply use the first editor in the result set
234          dmsg(1,("Found matching editor '%s' for instrument ('%s', %d) having data structure ('%s','%s')\n",          dmsg(1,("Found matching editor '%s' for instrument ('%s', %d) having data structure ('%s','%s')\n",
235              vEditors[0].c_str(), ID.FileName.c_str(), ID.Index, sDataType.c_str(), sDataVersion.c_str()));              vEditors[0].c_str(), ID.FileName.c_str(), ID.Index, sDataType.c_str(), sDataVersion.c_str()));

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

  ViewVC Help
Powered by ViewVC