/[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 1852 by schoenebeck, Sun Mar 1 22:22:03 2009 UTC revision 1868 by schoenebeck, Wed Mar 18 22:16:14 2009 UTC
# Line 233  namespace LinuxSampler { namespace gig { Line 233  namespace LinuxSampler { namespace gig {
233          }          }
234      }      }
235    
236      void InstrumentResourceManager::LaunchInstrumentEditor(instrument_id_t ID) throw (InstrumentManagerException) {      InstrumentEditor* InstrumentResourceManager::LaunchInstrumentEditor(instrument_id_t ID) throw (InstrumentManagerException) {
237          const String sDataType    = GetInstrumentDataStructureName(ID);          const String sDataType    = GetInstrumentDataStructureName(ID);
238          const String sDataVersion = GetInstrumentDataStructureVersion(ID);          const String sDataVersion = GetInstrumentDataStructureVersion(ID);
239          // find instrument editors capable to handle given instrument          // find instrument editors capable to handle given instrument
# Line 267  namespace LinuxSampler { namespace gig { Line 267  namespace LinuxSampler { namespace gig {
267              dynamic_cast<VirtualMidiDevice*>(pEditor);              dynamic_cast<VirtualMidiDevice*>(pEditor);
268          if (!pVirtualMidiDevice) {          if (!pVirtualMidiDevice) {
269              std::cerr << "Instrument editor not a virtual MIDI device\n" << std::flush;              std::cerr << "Instrument editor not a virtual MIDI device\n" << std::flush;
270              return;              return pEditor;
271          }          }
272          // NOTE: for now connect the virtual MIDI keyboard of the instrument editor (if any) with all engine channels that have the same instrument as the editor was opened for ( other ideas ? )          // NOTE: for now connect the virtual MIDI keyboard of the instrument editor (if any) with all engine channels that have the same instrument as the editor was opened for ( other ideas ? )
273          Lock();          Lock();
# Line 277  namespace LinuxSampler { namespace gig { Line 277  namespace LinuxSampler { namespace gig {
277          std::set<gig::EngineChannel*>::iterator end  = engineChannels.end();          std::set<gig::EngineChannel*>::iterator end  = engineChannels.end();
278          for (; iter != end; ++iter) (*iter)->Connect(pVirtualMidiDevice);          for (; iter != end; ++iter) (*iter)->Connect(pVirtualMidiDevice);
279          Unlock();          Unlock();
280    
281            return pEditor;
282      }      }
283    
284      /**      /**

Legend:
Removed from v.1852  
changed lines
  Added in v.1868

  ViewVC Help
Powered by ViewVC