diff options
Diffstat (limited to 'apps/dolmetschctl.c')
-rw-r--r-- | apps/dolmetschctl.c | 8 |
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; |