[Csnd-dev] OSCRaw...
Date | 2017-04-25 14:34 |
From | Rory Walsh |
Subject | [Csnd-dev] OSCRaw... |
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?
|
Date | 2017-04-25 14:41 |
From | Rory Walsh |
Subject | Re: [Csnd-dev] OSCRaw... |
So it looks like it is part of the websocket stuff. If I enabled the building of these opcodes on Windows I get errors, posted below. I don't think I've ever built these before, do I need 3rd party libs? C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_finish': C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:168:5: warning: implicit declaration of function 'lws_cancel_service' [-Wimplicit-function-declaration] lws_cancel_service(self->webSocket->context); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:169:5: warning: implicit declaration of function 'lws_context_destroy' [-Wimplicit-function-declaration] lws_context_destroy(self->webSocket->context); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_writeOnce': C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:373:5: warning: implicit declaration of function 'lws_write' [-Wimplicit-function-declaration] lws_write(websocket, messageBuffer, inputArgument->bytesCount, ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleServerWritable': C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: implicit declaration of function 'lws_get_protocol' [-Wimplicit-function-declaration] const struct lws_protocols *protocol = lws_get_protocol(websocket); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion] C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:425:17: error: dereferencing pointer to incomplete type 'const struct lws_protocols' if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:427:7: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] usleep(100); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:458:7: warning: implicit declaration of function 'lws_callback_on_writable' [-Wimplicit-function-declaration] lws_callback_on_writable(websocket); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleReceive': C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:466:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion] const struct lws_protocols *protocol = lws_get_protocol(websocket); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: At top level: C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: 'enum lws_callback_reasons' declared inside parameter list void *user, void *inputData, size_t inputDataSize) ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: its scope is only this definition or declaration, which is probably not what you want C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:523:57: error: parameter 2 ('reason') has incomplete type enum lws_callback_reasons reason, ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'Websocket_callback': C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:534:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion] const struct lws_protocols *protocol = lws_get_protocol(websocket); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:535:56: error: invalid type argument of '->' (have 'int') WebSocketOpcode *self = lws_get_protocol(websocket)->user; ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_processThread': C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:581:7: warning: implicit declaration of function 'lws_service' [-Wimplicit-function-declaration] lws_service(self->webSocket->context, 10); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:582:7: warning: implicit declaration of function 'lws_callback_on_writable_all_protocol' [-Wimplicit-function-declaration] lws_callback_on_writable_all_protocol(self->webSocket->context, ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:45: error: invalid use of undefined type 'struct lws_protocols' &self->webSocket->protocols[0]); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:72: error: dereferencing pointer to incomplete type 'struct lws_protocols' &self->webSocket->protocols[0]); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_initialiseWebSocket': C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:596:37: error: invalid application of 'sizeof' to incomplete type 'struct lws_protocols' csound->Calloc(csound, sizeof(struct lws_protocols) * (argumentsCount + 1)); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:601:7: error: invalid use of undefined type 'struct lws_protocols' self->webSocket->protocols[argumentIndex].name = self->inputArguments[i].name; ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:602:7: error: invalid use of undefined type 'struct lws_protocols' self->webSocket->protocols[argumentIndex].callback = Websocket_callback; ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:603:7: error: invalid use of undefined type 'struct lws_protocols' self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i; ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:604:7: error: invalid use of undefined type 'struct lws_protocols' self->webSocket->protocols[argumentIndex].user = self; ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:605:7: error: invalid use of undefined type 'struct lws_protocols' self->webSocket->protocols[argumentIndex].per_session_data_size = ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:611:7: error: invalid use of undefined type 'struct lws_protocols' self->webSocket->protocols[argumentIndex].name = ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:613:7: error: invalid use of undefined type 'struct lws_protocols' self->webSocket->protocols[argumentIndex].callback = Websocket_callback; ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:614:7: error: invalid use of undefined type 'struct lws_protocols' self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i; ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:615:7: error: invalid use of undefined type 'struct lws_protocols' self->webSocket->protocols[argumentIndex].user = self; ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:616:7: error: invalid use of undefined type 'struct lws_protocols' self->webSocket->protocols[argumentIndex].per_session_data_size = ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:622:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] self->webSocket->info.protocols = self->webSocket->protocols; ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:32: warning: implicit declaration of function 'lws_create_context' [-Wimplicit-function-declaration] self->webSocket->context = lws_create_context(&self->webSocket->info); ^ C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion] self->webSocket->context = lws_create_context(&self->webSocket->info); ^ Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:62: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj' failed make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj] Error 1 CMakeFiles/Makefile2:1402: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2 On 25 April 2017 at 14:34, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2017-04-25 17:35 |
From | Ed Costello |
Subject | Re: [Csnd-dev] OSCRaw... |
The web socket opcodes are separate from the OSC opcodes, they also require libwebsockets v2 https://libwebsockets.org/ Ed
|
Date | 2017-04-25 17:40 |
From | Rory Walsh |
Subject | Re: [Csnd-dev] OSCRaw... |
At least they used to be? Good to know that I need libwebsockets. I hope a version exists for msys2 On 25 April 2017 at 17:35, Ed Costello <phasereset@gmail.com> wrote:
|
Date | 2017-04-25 17:44 |
From | Ed Costello |
Subject | Re: [Csnd-dev] OSCRaw... |
No, websockets and those other opcodes are different, I’ve never used those other ones, but the websocket opcodes are used to communicate with a running browser and send data back and forth using javascript on the browser side. Ed
|
Date | 2017-04-25 17:47 |
From | Rory Walsh |
Subject | Re: [Csnd-dev] OSCRaw... |
Ah Ok. So sockrec and socksend aren't using websockets. My bad. Cool. Now to figure out why Csound doesn't recognise OSCraw after rebuilding... On 25 April 2017 at 17:44, Ed Costello <phasereset@gmail.com> wrote:
|
Date | 2017-04-25 17:48 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd-dev] OSCRaw... |
AFAIK OSCraw is not part of websockets, and I can confirm that I can build OSCraw here. Victor knows more about the details. 2017-04-25 9:40 GMT-07:00 Rory Walsh <rorywalsh@ear.ie>:
Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://www.partikkelaudio.com/ http://crossadaptive.hf.ntnu.no http://gdsp.hf.ntnu.no/ http://soundcloud.com/brandtsegg http://flyndresang.no/ http://soundcloud.com/t-emp |
Date | 2017-04-25 17:51 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd-dev] OSCRaw... |
I'm looking at it now, and it is built as part of csound64.dll Both OSCraw and the new OSCsend is there (not in osc.dll) 2017-04-25 9:47 GMT-07:00 Rory Walsh <rorywalsh@ear.ie>:
Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://www.partikkelaudio.com/ http://crossadaptive.hf.ntnu.no http://gdsp.hf.ntnu.no/ http://soundcloud.com/brandtsegg http://flyndresang.no/ http://soundcloud.com/t-emp |
Date | 2017-04-25 18:13 |
From | Rory Walsh |
Subject | Re: [Csnd-dev] OSCRaw... |
On 25 April 2017 at 17:51, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
|
Date | 2017-04-25 18:50 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd-dev] OSCRaw... |
Halleluja! 2017-04-25 10:13 GMT-07:00 Rory Walsh <rorywalsh@ear.ie>:
Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://www.partikkelaudio.com/ http://crossadaptive.hf.ntnu.no http://gdsp.hf.ntnu.no/ http://soundcloud.com/brandtsegg http://flyndresang.no/ http://soundcloud.com/t-emp |