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-2009 Christian Schoenebeck * |
* Copyright (C) 2005-2011 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 * |
23 |
|
|
24 |
#include <getopt.h> |
#include <getopt.h> |
25 |
#include <signal.h> |
#include <signal.h> |
26 |
|
#include <sys/stat.h> |
27 |
|
|
28 |
#if defined(WIN32) |
#if defined(WIN32) |
29 |
// require at least Windows 2000 for the GlobalMemoryStatusEx() call |
// require at least Windows 2000 for the GlobalMemoryStatusEx() call |
41 |
#include "plugins/InstrumentEditorFactory.h" |
#include "plugins/InstrumentEditorFactory.h" |
42 |
#include "drivers/midi/MidiInputDeviceFactory.h" |
#include "drivers/midi/MidiInputDeviceFactory.h" |
43 |
#include "drivers/audio/AudioOutputDeviceFactory.h" |
#include "drivers/audio/AudioOutputDeviceFactory.h" |
44 |
|
#include "effects/EffectFactory.h" |
45 |
#include "engines/gig/Profiler.h" |
#include "engines/gig/Profiler.h" |
46 |
#include "network/lscpserver.h" |
#include "network/lscpserver.h" |
47 |
#include "common/stacktrace.h" |
#include "common/stacktrace.h" |
118 |
|
|
119 |
dmsg(1,("LinuxSampler %s\n", VERSION)); |
dmsg(1,("LinuxSampler %s\n", VERSION)); |
120 |
dmsg(1,("Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck\n")); |
dmsg(1,("Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck\n")); |
121 |
dmsg(1,("Copyright (C) 2005-2009 Christian Schoenebeck\n")); |
dmsg(1,("Copyright (C) 2005-2011 Christian Schoenebeck\n")); |
122 |
|
|
123 |
#if defined(WIN32) |
#if defined(WIN32) |
124 |
#if 0 |
#if 0 |
189 |
dmsg(1,("Registered MIDI input drivers: %s\n", MidiInputDeviceFactory::AvailableDriversAsString().c_str())); |
dmsg(1,("Registered MIDI input drivers: %s\n", MidiInputDeviceFactory::AvailableDriversAsString().c_str())); |
190 |
dmsg(1,("Registered audio output drivers: %s\n", AudioOutputDeviceFactory::AvailableDriversAsString().c_str())); |
dmsg(1,("Registered audio output drivers: %s\n", AudioOutputDeviceFactory::AvailableDriversAsString().c_str())); |
191 |
dmsg(1,("Registered instrument editors: %s\n", InstrumentEditorFactory::AvailableEditorsAsString().c_str())); |
dmsg(1,("Registered instrument editors: %s\n", InstrumentEditorFactory::AvailableEditorsAsString().c_str())); |
192 |
|
dmsg(1,("Registered internal effect systems: %s\n", EffectFactory::AvailableEffectSystemsAsString().c_str())); |
193 |
|
dmsg(1,("Registered internal effects: %d\n", EffectFactory::AvailableEffectsCount())); |
194 |
|
|
195 |
// start LSCP network server |
// start LSCP network server |
196 |
struct in_addr addr; |
struct in_addr addr; |
348 |
break; |
break; |
349 |
case 2: // --profile |
case 2: // --profile |
350 |
profile = true; |
profile = true; |
351 |
|
//FIXME: profiling code is currently broken! |
352 |
|
std::cerr << "Option '--profile' is currently not supported, since the profiling code is currently broken!" << std::endl; |
353 |
|
exit(EXIT_FAILURE); |
354 |
break; |
break; |
355 |
case 3: // --no-tune |
case 3: // --no-tune |
356 |
tune = false; |
tune = false; |