summaryrefslogtreecommitdiff
path: root/apps/dolmetschctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dolmetschctl.c')
-rw-r--r--apps/dolmetschctl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/dolmetschctl.c b/apps/dolmetschctl.c
index 0fc9877..6e92b2c 100644
--- a/apps/dolmetschctl.c
+++ b/apps/dolmetschctl.c
@@ -43,16 +43,17 @@ void print_version()
int main(int argc, char* argv[])
{
- lo_server_thread st = osc_init("7770");
- // TODO: check if this worked!
+ osc_t o;
+ if(osc_init(&o, "7770"))
+ return -1;
midi_t m;
if(midi_init(&m, "hw:2,0,0"))
return -1;
- osc_start(st);
+ osc_start(&o);
midi_run(&m);
- osc_stop(st);
+ osc_stop(&o);
return 0;
}