/[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 879 by persson, Sun Feb 26 13:00:08 2006 UTC revision 880 by schoenebeck, Tue Jun 27 22:57:37 2006 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2005 Christian Schoenebeck                              *   *   Copyright (C) 2005, 2006 Christian Schoenebeck                        *
4   *                                                                         *   *                                                                         *
5   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
6   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 29  namespace LinuxSampler { Line 29  namespace LinuxSampler {
29      // all currently existing engine channel instances      // all currently existing engine channel instances
30      static std::set<LinuxSampler::EngineChannel*> engineChannels;      static std::set<LinuxSampler::EngineChannel*> engineChannels;
31    
32      LinuxSampler::EngineChannel* EngineChannelFactory::Create(String EngineType) throw (LinuxSamplerException) {      LinuxSampler::EngineChannel* EngineChannelFactory::Create(String EngineType) throw (Exception) {
33          if (!strcasecmp(EngineType.c_str(),"GigEngine") || !strcasecmp(EngineType.c_str(),"gig")) {          if (!strcasecmp(EngineType.c_str(),"GigEngine") || !strcasecmp(EngineType.c_str(),"gig")) {
34              LinuxSampler::EngineChannel* pEngineChannel = new gig::EngineChannel;              LinuxSampler::EngineChannel* pEngineChannel = new gig::EngineChannel;
35              engineChannels.insert(pEngineChannel);              engineChannels.insert(pEngineChannel);
36              return pEngineChannel;              return pEngineChannel;
37          }          }
38          throw LinuxSamplerException("Unknown engine type");          throw Exception("Unknown engine type");
39      }      }
40    
41      void EngineChannelFactory::Destroy(LinuxSampler::EngineChannel* pEngineChannel) {      void EngineChannelFactory::Destroy(LinuxSampler::EngineChannel* pEngineChannel) {

Legend:
Removed from v.879  
changed lines
  Added in v.880

  ViewVC Help
Powered by ViewVC