/[svn]/linuxsampler/trunk/src/Sampler.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/Sampler.cpp

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

revision 1723 by schoenebeck, Sun Apr 20 08:53:39 2008 UTC revision 1761 by iliev, Fri Aug 29 15:42:06 2008 UTC
# Line 83  namespace LinuxSampler { Line 83  namespace LinuxSampler {
83          EngineChannel* pNewEngineChannel = EngineChannelFactory::Create(EngineType);          EngineChannel* pNewEngineChannel = EngineChannelFactory::Create(EngineType);
84          if (!pNewEngineChannel) throw Exception("Unknown engine type");          if (!pNewEngineChannel) throw Exception("Unknown engine type");
85    
86          //FIXME: hack to allow fast retrieval of engine channel's sampler channel index          pNewEngineChannel->SetSamplerChannel(this);
         pNewEngineChannel->iSamplerChannelIndex = Index();  
87    
88          // dereference midi input port.          // dereference midi input port.
89          MidiInputPort* pMidiInputPort = __GetMidiInputDevicePort(GetMidiInputPort());          MidiInputPort* pMidiInputPort = __GetMidiInputDevicePort(GetMidiInputPort());
# Line 216  namespace LinuxSampler { Line 215  namespace LinuxSampler {
215          throw Exception("Internal error: SamplerChannel index not found");          throw Exception("Internal error: SamplerChannel index not found");
216      }      }
217    
218        Sampler* SamplerChannel::GetSampler() {
219            return pSampler;
220        }
221    
222      void SamplerChannel::AddEngineChangeListener(EngineChangeListener* l) {      void SamplerChannel::AddEngineChangeListener(EngineChangeListener* l) {
223          llEngineChangeListeners.AddListener(l);          llEngineChangeListeners.AddListener(l);
224      }      }

Legend:
Removed from v.1723  
changed lines
  Added in v.1761

  ViewVC Help
Powered by ViewVC