summaryrefslogtreecommitdiff
path: root/drumgizmo/enginefactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'drumgizmo/enginefactory.h')
-rw-r--r--drumgizmo/enginefactory.h51
1 files changed, 26 insertions, 25 deletions
diff --git a/drumgizmo/enginefactory.h b/drumgizmo/enginefactory.h
index f00df99..2d8da80 100644
--- a/drumgizmo/enginefactory.h
+++ b/drumgizmo/enginefactory.h
@@ -33,54 +33,55 @@
#include "audiooutputengine.h"
#if defined(HAVE_INPUT_JACKMIDI) || defined(HAVE_OUTPUT_JACKAUDIO)
- #define USE_JACK
- #include "jackclient.h"
+#define USE_JACK
+#include "jackclient.h"
#endif
#ifdef HAVE_INPUT_DUMMY
- #include "input/inputdummy.h"
+#include "input/inputdummy.h"
#endif
#ifdef HAVE_INPUT_MIDIFILE
- #include "input/midifile.h"
+#include "input/midifile.h"
#endif
#ifdef HAVE_INPUT_JACKMIDI
- #include "input/jackmidi.h"
+#include "input/jackmidi.h"
#endif
#ifdef HAVE_OUTPUT_DUMMY
- #include "output/outputdummy.h"
+#include "output/outputdummy.h"
#endif
#ifdef HAVE_OUTPUT_WAVFILE
- #include "output/wavfile.h"
+#include "output/wavfile.h"
#endif
#ifdef HAVE_OUTPUT_ALSA
- #include "output/alsa.h"
+#include "output/alsa.h"
#endif
#ifdef HAVE_OUTPUT_JACKAUDIO
- #include "output/jackaudio.h"
+#include "output/jackaudio.h"
#endif
-class EngineFactory {
- private:
- std::list<std::string> input, output; // available engines
-
+class EngineFactory
+{
+private:
+ std::list<std::string> input, output; // available engines
+
#ifdef USE_JACK
- std::unique_ptr<JackClient> jack;
-
- void prepareJack();
+ std::unique_ptr<JackClient> jack;
+
+ void prepareJack();
#endif
-
- public:
- EngineFactory();
-
- std::list<std::string> const & getInputEngines() const;
- std::list<std::string> const & getOutputEngines() const;
-
- std::unique_ptr<AudioInputEngine> createInput(std::string const & name);
- std::unique_ptr<AudioOutputEngine> createOutput(std::string const & name);
+
+public:
+ EngineFactory();
+
+ std::list<std::string> const &getInputEngines() const;
+ std::list<std::string> const &getOutputEngines() const;
+
+ std::unique_ptr<AudioInputEngine> createInput(std::string const &name);
+ std::unique_ptr<AudioOutputEngine> createOutput(std::string const &name);
};