summaryrefslogtreecommitdiff
path: root/apps/dolmetschctl.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-10 05:28:47 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-10-10 05:28:47 +0200
commit336f80ec03f1ba3e9d41f381ce60ab4cb1e1bb30 (patch)
tree492eaeedeb0c83bcbe71172b8f24dff8b4890d1a /apps/dolmetschctl.c
parentmoved osc stuff to separate files (diff)
added midi captureing code
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;