summaryrefslogtreecommitdiff
path: root/drumgizmo/enginefactory.h
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-01-25 14:14:22 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-02-09 09:03:17 +0100
commit100e2d3bd46f64df730c8a375559680c577036ef (patch)
tree952e0ce0a1c5b6efb792c50617baa1484ba51e39 /drumgizmo/enginefactory.h
parente5a773e80bee619987aacd40cc3205acfe146e9c (diff)
applied clang-format
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);
};