Mercurial > hg > beaglert
comparison core/OSCServer.cpp @ 303:421a69d42943 prerelease
Changed BeagleRT -> Bela in defines and thread names; some preliminary mux capelet stuff
author | andrewm |
---|---|
date | Fri, 27 May 2016 17:40:44 +0100 |
parents | e4392164b458 |
children | efc9a9f8e63d |
comparison
equal
deleted
inserted
replaced
302:b26e7c61e3b6 | 303:421a69d42943 |
---|---|
19 } | 19 } |
20 | 20 |
21 void OSCServer::createAuxTasks(){ | 21 void OSCServer::createAuxTasks(){ |
22 char name [30]; | 22 char name [30]; |
23 sprintf (name, "OSCRecieveTask %i", port); | 23 sprintf (name, "OSCRecieveTask %i", port); |
24 OSCRecieveTask = Bela_createAuxiliaryTask(OSCServer::checkMessages, BEAGLERT_AUDIO_PRIORITY-5, name, this, true); | 24 OSCRecieveTask = Bela_createAuxiliaryTask(OSCServer::checkMessages, BELA_AUDIO_PRIORITY-5, name, this, true); |
25 } | 25 } |
26 | 26 |
27 void OSCServer::messageCheck(){ | 27 void OSCServer::messageCheck(){ |
28 if (socket.waitUntilReady(true, UDP_RECIEVE_TIMEOUT_MS)){ | 28 if (socket.waitUntilReady(true, UDP_RECIEVE_TIMEOUT_MS)){ |
29 int msgLength = socket.read(&inBuffer, UDP_RECIEVE_MAX_LENGTH, false); | 29 int msgLength = socket.read(&inBuffer, UDP_RECIEVE_MAX_LENGTH, false); |