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

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

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

revision 200 by schoenebeck, Tue Jul 13 22:04:16 2004 UTC revision 880 by schoenebeck, Tue Jun 27 22:57:37 2006 UTC
# Line 3  Line 3 
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  *
# Line 26  Line 27 
27  #include <map>  #include <map>
28  #include <vector>  #include <vector>
29    
30  #include "../../common/LinuxSamplerException.h"  #include "../../common/Exception.h"
31  #include "../DeviceParameterFactory.h"  #include "../DeviceParameterFactory.h"
32  #include "AudioOutputDevice.h"  #include "AudioOutputDevice.h"
33    
# Line 56  namespace LinuxSampler { Line 57  namespace LinuxSampler {
57            class InnerFactoryRegistrator {            class InnerFactoryRegistrator {
58                public:                public:
59                    InnerFactoryRegistrator() {                    InnerFactoryRegistrator() {
60                        AudioOutputDeviceFactory::InnerFactories[Driver_T::Name()] = new InnerFactoryTemplate<Driver_T>;                        AudioOutputDeviceFactory::InnerFactories[Driver_T::Name()] = new AudioOutputDeviceFactory::InnerFactoryTemplate<Driver_T>;
61                        AudioOutputDeviceFactory::ParameterFactories[Driver_T::Name()] = new DeviceParameterFactory();                        AudioOutputDeviceFactory::ParameterFactories[Driver_T::Name()] = new DeviceParameterFactory();
62                    }                    }
63            };            };
# Line 69  namespace LinuxSampler { Line 70  namespace LinuxSampler {
70                    }                    }
71            };            };
72    
73            static AudioOutputDevice*                        Create(String DriverName, std::map<String,String> Parameters) throw (LinuxSamplerException);            static AudioOutputDevice*                        Create(String DriverName, std::map<String,String> Parameters) throw (Exception);
74            static std::vector<String>                       AvailableDrivers();            static std::vector<String>                       AvailableDrivers();
75            static String                                    AvailableDriversAsString();            static String                                    AvailableDriversAsString();
76            static std::map<String,DeviceCreationParameter*> GetAvailableDriverParameters(String DriverName) throw (LinuxSamplerException);            static std::map<String,DeviceCreationParameter*> GetAvailableDriverParameters(String DriverName) throw (Exception);
77            static DeviceCreationParameter*                  GetDriverParameter(String DriverName, String ParameterName) throw (LinuxSamplerException);            static DeviceCreationParameter*                  GetDriverParameter(String DriverName, String ParameterName) throw (Exception);
78            static String                                    GetDriverDescription(String DriverName) throw (LinuxSamplerException);            static String                                    GetDriverDescription(String DriverName) throw (Exception);
79            static String                                    GetDriverVersion(String DriverName) throw (LinuxSamplerException);            static String                                    GetDriverVersion(String DriverName) throw (Exception);
80    
81        protected:  //      protected: /* FIXME: fields below should be protected, causes errors on gcc 2.95 though */
82            static std::map<String, InnerFactory*> InnerFactories;            static std::map<String, InnerFactory*> InnerFactories;
83            static std::map<String, DeviceParameterFactory*> ParameterFactories;            static std::map<String, DeviceParameterFactory*> ParameterFactories;
84    };    };

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

  ViewVC Help
Powered by ViewVC