summaryrefslogtreecommitdiff
path: root/apps/dolmetschctl.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-10 06:20:46 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-10-10 06:20:46 +0200
commite60a68ede522e56b3a52ddad25ab1704b587e9c2 (patch)
treebe96ce85eb659ca06b1e464e8b11885c63e9a074 /apps/dolmetschctl.c
parentosc know has an own stuct too (diff)
midi is now using a thread as well
Diffstat (limited to 'apps/dolmetschctl.c')
-rw-r--r--apps/dolmetschctl.c8
1 files changed, 6 insertions, 2 deletions
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;