/[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 1828 by schoenebeck, Mon Dec 31 15:33:54 2007 UTC revision 1829 by iliev, Fri Jan 30 19:22:36 2009 UTC
# Line 40  Line 40 
40  #if HAVE_ASIO  #if HAVE_ASIO
41  # include "AudioOutputDeviceAsio.h"  # include "AudioOutputDeviceAsio.h"
42  #endif // HAVE_ASIO  #endif // HAVE_ASIO
43    
44    #if HAVE_COREAUDIO
45    # include "AudioOutputDeviceCoreAudio.h"
46    #endif // HAVE_COREAUDIO
47    
48  namespace LinuxSampler {  namespace LinuxSampler {
49    
50      std::map<String, AudioOutputDeviceFactory::InnerFactory*> AudioOutputDeviceFactory::InnerFactories;      std::map<String, AudioOutputDeviceFactory::InnerFactory*> AudioOutputDeviceFactory::InnerFactories;
# Line 88  namespace LinuxSampler { Line 93  namespace LinuxSampler {
93      REGISTER_AUDIO_OUTPUT_DRIVER_PARAMETER(AudioOutputDeviceAsio, ParameterFragmentSize);      REGISTER_AUDIO_OUTPUT_DRIVER_PARAMETER(AudioOutputDeviceAsio, ParameterFragmentSize);
94  #endif // HAVE_ASIO  #endif // HAVE_ASIO
95    
96    #if HAVE_COREAUDIO
97        REGISTER_AUDIO_OUTPUT_DRIVER(AudioOutputDeviceCoreAudio);
98        /* Common parameters for now they'll have to be registered here. */
99        REGISTER_AUDIO_OUTPUT_DRIVER_PARAMETER(AudioOutputDeviceCoreAudio, ParameterActive);
100        REGISTER_AUDIO_OUTPUT_DRIVER_PARAMETER(AudioOutputDeviceCoreAudio, ParameterSampleRate);
101        REGISTER_AUDIO_OUTPUT_DRIVER_PARAMETER(AudioOutputDeviceCoreAudio, ParameterChannels);
102        REGISTER_AUDIO_OUTPUT_DRIVER_PARAMETER(AudioOutputDeviceCoreAudio, ParameterBuffers);
103        REGISTER_AUDIO_OUTPUT_DRIVER_PARAMETER(AudioOutputDeviceCoreAudio, ParameterBufferSize);
104    #endif // HAVE_COREAUDIO
105    
106      AudioOutputDevice* AudioOutputDeviceFactory::Create(String DriverName, std::map<String,String> Parameters) throw (Exception) {      AudioOutputDevice* AudioOutputDeviceFactory::Create(String DriverName, std::map<String,String> Parameters) throw (Exception) {
107          if (!InnerFactories.count(DriverName)) throw Exception("There is no audio output driver '" + DriverName + "'.");          if (!InnerFactories.count(DriverName)) throw Exception("There is no audio output driver '" + DriverName + "'.");
108          //Let's see if we need to create parameters          //Let's see if we need to create parameters

Legend:
Removed from v.1828  
changed lines
  Added in v.1829

  ViewVC Help
Powered by ViewVC