[linux-audio-dev] [RFC] Lite OSC API

Steve Harris S.W.Harris at ecs.soton.ac.uk
Sun Jan 25 20:11:36 UTC 2004


Hi *,

I've been working on a lightweigth OSC API for the last couple of days and
I'd appreiciate some comments - it works as it is, but it needs some work
and the API isn't final so please dont integrate it into any projects yet.

Its quite limited:

	* only basic OSC types (int, float, string, blob), but adding more
	  is easy
	* no unix-domain sockets (just UDP)
	* no bundles
	* only accepts typed messages (unless you handle the packet
	  parsing yourself)

On the upside you can send an OSC message in 2 lines of C using a fprintf
style function and you can setup a serverthread with polymorhism/automatic
typechecking and callbacks (JACK stylee) very easily.

You can also use bits of the API selectivly if you want to mange bits of
the OSC lifecycle yourself, eg. handle raw OSC by hand or provide your own
thread.

Theres an example program that uses it here:
http://plugin.org.uk/liblo/liblo/src/testlo.c

and you can get the tarball here:
http://plugin.org.uk/liblo/

Comments on the API style, testing and offers of help greatfully received.

- Steve



More information about the Linux-audio-dev mailing list