| I just checked the sources and it is in the LGPL version of liblo.
So it is a design issue. Should we allow sending of tables via blobs?
Is this a simple syntax extensi0n or does it need new opcodes?
Are we to allow receoipt of blobs as tables? etc etc
Sorry but I really have forgotten all about OSC -- never use it
myself.
==John ff
> yes, I think it is a part of liblo.
>
> I wrote a very simple test program (also attached):
> --------
>
> // to test, if sendosc blob type works
> // link with -llo flag
>
> #include
> #include
> #include
>
> #define LENGTH 5
>
> int main() {
>
> lo_address target=lo_address_new("localhost", "8888");
> int res;
> float data[LENGTH]={0.0,0.1,0.2,0.3,0.4};
>
>
> lo_blob myblob=lo_blob_new(sizeof(data[0])*LENGTH, data);
> if ((res=lo_send(target,"/blob/test","b",myblob))==-1) {
> printf("Error in sending blob\n");
> return -1;
> }
>
> return 0;
>
> }
>
> ---------
>
> running oscdump in another terminal reported correctly:
>
> ~> oscdump 8888
> /blob/test b [20 byte blob]
>
>
> The maximum length that one could send with floats is
> LENGTH 8184
>
> (oscdump):
> /blob/test b [32736 byte blob]
>
> so it is quite a lot.
>
> Thus the maximum data sent at once can be 32768 bytes and a bit less ( I
> think there is some extra info in the blob, I don't know).
>
>
> Have a look also to http://liblo.sourceforge.net/examples/example_client.c
>
> greetings,
> tarmo
>
>
> On Thursday 22 September 2011 13:22:40 jpff@cs.bath.ac.uk wrote:
>> At present, and I have no plans to change, we rely on the liblo package.
>> If the blob is accepted into liblo we might attempt to deploy it.
>> ==John ff
>>
>> > hello,
>> >
>> > this is not a solution, more for discussion:
>> >
>> > the osc library http://liblo.sourceforge.net/docs/group__liblo.html
>> > has declared a type blob - basically an array of binary data
>> > created with function
>> >
>> > lo_blob lo_blob_new (int32_t size, const void *data)
>> > Create a new OSC blob type.
>> >
>> >
>> > I think it is not implemented in Csound and not sure if other programs
>> > support it eihter, but in such cases (to forward a lot of data) it
>> could
>> > be the ideal solution.
>> >
>> > greetings,
>> > tarmo
>> >
>> >
>> >
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|