more bla from Terreblanque

This commit is contained in:
tth
2021-10-04 22:24:01 +02:00
parent e4a3917481
commit 2d3bd8ed8b
12 changed files with 167 additions and 13 deletions

View File

@@ -19,6 +19,15 @@ arguments: arguments.c Makefile
no-op: no-op.c Makefile
gcc -Wall $< -o $@
#------------- OSC -----------------------
osc: send-osc listen-osc
send-osc: send-osc.c Makefile
gcc -Wall $< -llo -o $@
listen-osc: listen-osc.c Makefile
gcc -Wall $< -llo -o $@
#------------- IPC -----------------------
get-signal: get-signal.c Makefile
@@ -45,3 +54,10 @@ plugiciel.so: plugiciel.c plugiciel.h Makefile
appelant: appelant.c plugiciel.h Makefile
gcc -Wall $< -ldl -o $@
#------------- GRAPHISME --------------------
flydraw.png: dessiner.fly
flydraw < $<
convert flydraw.gif flydraw.png

10
code/dessiner.fly Normal file
View File

@@ -0,0 +1,10 @@
comment Juste un petit dessin...
new 640,480
line 10,10,300,300,red
line 12,10,302,300,red
line 14,10,304,300,red
output flydraw.gif

View File

@@ -1 +1,14 @@
/* LISTEN OSC */
#include <stdio.h>
#include <lo/lo.h>
#define LOCAL_PORT "9000"
int main(int argc, char *argv[])
{
return 0;
}

View File

@@ -1 +1,18 @@
/* SEND OSC */
#include <stdio.h>
#include <lo/lo.h>
#define REMOTE_HOST "localhost"
#define REMOTE_PORT "9000"
int main(int argc, char *argv[])
{
lo_address loana;
int foo;
loana = lo_address_new(REMOTE_HOST, REMOTE_PORT);
foo = lo_send(loana, "/dev/kmem", "is", 61, "meg, efface !");
fprintf(stderr, "foo %d\n", foo);
return 0;
}