From bdd35c258a3ef2bae8632787e3110c3bc7e21b8f Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Wed, 23 Mar 2016 17:05:00 +0100 Subject: Added test input to enginefactory. The remaning lines. --- drumgizmo/enginefactory.cc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'drumgizmo/enginefactory.cc') diff --git a/drumgizmo/enginefactory.cc b/drumgizmo/enginefactory.cc index 36c79c5..98db4b6 100644 --- a/drumgizmo/enginefactory.cc +++ b/drumgizmo/enginefactory.cc @@ -43,12 +43,13 @@ EngineFactory::EngineFactory() #ifdef HAVE_INPUT_MIDIFILE input.push_back("midifile"); #endif -#ifdef HAVE_INPUT_JACKMIDI - input.push_back("jackmidi"); -#endif #ifdef HAVE_INPUT_TEST input.push_back("test"); #endif +#ifdef HAVE_INPUT_JACKMIDI + input.push_back("jackmidi"); +#endif + // list available output engines #ifdef HAVE_OUTPUT_DUMMY @@ -99,6 +100,12 @@ std::unique_ptr EngineFactory::createInput(const std::string& return std::make_unique(); } #endif +#ifdef HAVE_INPUT_TEST + if(name == "test") + { + return std::make_unique(); + } +#endif #ifdef HAVE_INPUT_JACKMIDI if(name == "jackmidi") { -- cgit v1.2.3