/[svn]/linuxsampler/trunk/src/drivers/audio/AudioOutputDeviceFactory.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/audio/AudioOutputDeviceFactory.cpp

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

revision 1834 by iliev, Thu Feb 5 17:48:54 2009 UTC revision 1835 by iliev, Mon Feb 16 17:56:50 2009 UTC
# Line 156  namespace LinuxSampler { Line 156  namespace LinuxSampler {
156      }      }
157    
158      DeviceCreationParameter* AudioOutputDeviceFactory::GetDriverParameter(String DriverName, String ParameterName) throw (Exception) {      DeviceCreationParameter* AudioOutputDeviceFactory::GetDriverParameter(String DriverName, String ParameterName) throw (Exception) {
159          std::map<String,DeviceCreationParameter*> parameters = GetAvailableDriverParameters(DriverName);          if (!InnerFactories.count(DriverName)) throw Exception("There is no audio output driver '" + DriverName + "'.");
160          if (!parameters.count(ParameterName)) throw Exception("Audio output driver '" + DriverName + "' does not have a parameter '" + ParameterName + "'.");          DeviceParameterFactory* pParamFactory = ParameterFactories[DriverName];
161          return parameters[ParameterName];          if (pParamFactory) {
162                try { return pParamFactory->Create(ParameterName); }
163                catch(Exception e) { }
164            }
165            throw Exception("Audio output driver '" + DriverName + "' does not have a parameter '" + ParameterName + "'.");
166      }      }
167    
168      String AudioOutputDeviceFactory::GetDriverDescription(String DriverName) throw (Exception) {      String AudioOutputDeviceFactory::GetDriverDescription(String DriverName) throw (Exception) {

Legend:
Removed from v.1834  
changed lines
  Added in v.1835

  ViewVC Help
Powered by ViewVC