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 * |
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) { |