1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2005, 2006 Christian Schoenebeck * |
* Copyright (C) 2005-2007 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 * |
57 |
throw Exception("Unknown engine type"); |
throw Exception("Unknown engine type"); |
58 |
} |
} |
59 |
|
|
60 |
void EngineFactory::Destroy(LinuxSampler::Engine* pEngine) { |
void EngineFactory::Erase(LinuxSampler::Engine* pEngine) { |
61 |
engines.erase(pEngine); |
engines.erase(pEngine); |
62 |
} |
} |
63 |
|
|
64 |
|
void EngineFactory::Destroy(LinuxSampler::Engine* pEngine) { |
65 |
|
delete pEngine; |
66 |
|
} |
67 |
|
|
68 |
const std::set<LinuxSampler::Engine*>& EngineFactory::EngineInstances() { |
const std::set<LinuxSampler::Engine*>& EngineFactory::EngineInstances() { |
69 |
return engines; |
return engines; |
70 |
} |
} |