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

Diff of /linuxsampler/trunk/src/engines/EngineChannelFactory.cpp

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

revision 2011 by iliev, Sat Jan 24 14:32:35 2009 UTC revision 2012 by iliev, Fri Oct 23 17:53:17 2009 UTC
# Line 24  Line 24 
24    
25  #include "gig/EngineChannel.h"  #include "gig/EngineChannel.h"
26    
27    #if HAVE_SF2
28    #include "sf2/EngineChannel.h"
29    #endif
30    
31    #include "sfz/EngineChannel.h"
32    
33  namespace LinuxSampler {  namespace LinuxSampler {
34      class LockedChannel {      class LockedChannel {
35          public:          public:
# Line 106  namespace LinuxSampler { Line 112  namespace LinuxSampler {
112              LinuxSampler::EngineChannel* pEngineChannel = new gig::EngineChannel;              LinuxSampler::EngineChannel* pEngineChannel = new gig::EngineChannel;
113              engineChannels.insert(pEngineChannel);              engineChannels.insert(pEngineChannel);
114              return pEngineChannel;              return pEngineChannel;
115            } else if (!strcasecmp(EngineType.c_str(),"sf2")) {
116            #if HAVE_SF2
117                LinuxSampler::EngineChannel* pEngineChannel = new sf2::EngineChannel;
118                engineChannels.insert(pEngineChannel);
119                return pEngineChannel;
120            #else
121                throw Exception("LinuxSampler is not compiled with SF2 support");
122            #endif
123            } else if (!strcasecmp(EngineType.c_str(),"sfz")) {
124                LinuxSampler::EngineChannel* pEngineChannel = new sfz::EngineChannel;
125                engineChannels.insert(pEngineChannel);
126                return pEngineChannel;
127          }          }
128          throw Exception("Unknown engine type");          throw Exception("Unknown engine type");
129      }      }

Legend:
Removed from v.2011  
changed lines
  Added in v.2012

  ViewVC Help
Powered by ViewVC