On Sun, Nov 15, 2009 at 10:03:24AM +0100, Karl Hammar wrote:
This 'telnet style' has existed for almost as long unix has,
and clearly there was a need for something more efficient in
some types of application.
A typical use for OSC is as an the interface between a
composition language and a real-time sysnthesis engine.
For example SuperCollider works this way. If you send 1000
messages per second to 25 granular synthesis channels each
(i.e. 25k messages/s) then the printf(),scanf() overhead
is not trivial at all. And you certainly don't want to
read all of them.
In many cases (if only a limited set of commands is required,
no wildcards, no timed commands) OSC encoding/decoding can be
done almost 'zero-copy' and using just a few lines of very
simple code. The biggest error you can make in such cases, if
efficienty is an issue, is to use a general purpose 'full'
implementation such as e.g. liblo.
Io lo dico sempre: l'Italia è troppo stretta e lunga.
Linux-audio-user mailing list