summaryrefslogtreecommitdiff
path: root/apps/dolmetschctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dolmetschctl.c')
-rw-r--r--apps/dolmetschctl.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/dolmetschctl.c b/apps/dolmetschctl.c
index e60dbcc..0fc9877 100644
--- a/apps/dolmetschctl.c
+++ b/apps/dolmetschctl.c
@@ -26,6 +26,8 @@
#include <unistd.h>
#include "osc.h"
+#include "midi.h"
+
void print_version()
{
@@ -39,15 +41,17 @@ void print_version()
#endif
}
-
int main(int argc, char* argv[])
{
lo_server_thread st = osc_init("7770");
+ // TODO: check if this worked!
+
+ midi_t m;
+ if(midi_init(&m, "hw:2,0,0"))
+ return -1;
osc_start(st);
- while (1) {
- usleep(1000);
- }
+ midi_run(&m);
osc_stop(st);
return 0;