3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
|
* Copyright (C) 2005, 2006 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* 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 * |
25 |
|
|
26 |
namespace LinuxSampler { |
namespace LinuxSampler { |
27 |
|
|
28 |
DeviceCreationParameter* DeviceParameterFactory::Create(String ParameterName, String val) throw (LinuxSamplerException) { |
DeviceCreationParameter* DeviceParameterFactory::Create(String ParameterName, String val) throw (Exception) { |
29 |
if (!InnerFactories.count(ParameterName)) throw LinuxSamplerException("No such parameter: '" + ParameterName + "'."); |
if (!InnerFactories.count(ParameterName)) throw Exception("No such parameter: '" + ParameterName + "'."); |
30 |
return InnerFactories[ParameterName]->Create(val); |
return InnerFactories[ParameterName]->Create(val); |
31 |
} |
} |
32 |
|
|
33 |
DeviceCreationParameter* DeviceParameterFactory::Create(String ParameterName) throw (LinuxSamplerException) { |
DeviceCreationParameter* DeviceParameterFactory::Create(String ParameterName) throw (Exception) { |
34 |
if (!InnerFactories.count(ParameterName)) throw LinuxSamplerException("No such parameter: '" + ParameterName + "'."); |
if (!InnerFactories.count(ParameterName)) throw Exception("No such parameter: '" + ParameterName + "'."); |
35 |
return InnerFactories[ParameterName]->Create(); |
return InnerFactories[ParameterName]->Create(); |
36 |
} |
} |
37 |
|
|