summaryrefslogtreecommitdiffstats
path: root/src/ingen
diff options
context:
space:
mode:
Diffstat (limited to 'src/ingen')
-rw-r--r--src/ingen/main.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp
index e6f9a4ce..2f729ab9 100644
--- a/src/ingen/main.cpp
+++ b/src/ingen/main.cpp
@@ -192,13 +192,16 @@ main(int argc, char** argv)
/* Activate the engine, if we have one */
if (engine) {
Ingen::JackAudioDriver* (*new_driver)(
- Ingen::Engine& engine,
- std::string server_name,
- std::string client_name,
- jack_client_t* jack_client) = NULL;
- if (engine_jack_module->get_symbol("new_jack_audio_driver", (void*&)new_driver))
+ Ingen::Engine& engine,
+ const std::string server_name,
+ const std::string client_name,
+ void* jack_client) = NULL;
+ if (engine_jack_module->get_symbol("new_jack_audio_driver", (void*&)new_driver)) {
engine->set_driver(DataType::AUDIO, SharedPtr<Driver>(new_driver(
*engine, "default", args.jack_name_arg, NULL)));
+ } else {
+ cerr << Glib::Module::get_last_error() << endl;
+ }
engine->activate(args.parallelism_arg);
}