From e60a68ede522e56b3a52ddad25ab1704b587e9c2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 10 Oct 2015 06:20:46 +0200 Subject: midi is now using a thread as well --- apps/dolmetschctl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/dolmetschctl.c') diff --git a/apps/dolmetschctl.c b/apps/dolmetschctl.c index 6e92b2c..fb8f30d 100644 --- a/apps/dolmetschctl.c +++ b/apps/dolmetschctl.c @@ -51,8 +51,12 @@ int main(int argc, char* argv[]) if(midi_init(&m, "hw:2,0,0")) return -1; - osc_start(&o); - midi_run(&m); + if(osc_start(&o) || midi_start(&m)) + return -1; + + sleep(10); + + midi_stop(&m); osc_stop(&o); return 0; -- cgit v1.2.3