osc: postpone e42f14577d for later, maybe
This commit is contained in:
parent
5f07fcc704
commit
ce4c99ddfe
2 changed files with 12 additions and 12 deletions
|
|
@ -70,7 +70,7 @@ var sendOsc = function(data){
|
|||
|
||||
}
|
||||
|
||||
var receiveOscQueue = []
|
||||
// var receiveOscQueue = []
|
||||
|
||||
var receiveOsc = function(data, info){
|
||||
|
||||
|
|
@ -82,20 +82,22 @@ var receiveOsc = function(data, info){
|
|||
|
||||
if (data.args.length==1) data.args = data.args[0]
|
||||
|
||||
receiveOscQueue.push(data)
|
||||
// receiveOscQueue.push(data)
|
||||
|
||||
ipc.send('receiveOsc',data)
|
||||
|
||||
if (debug) console.log('OSC received: ', {address:data.address, args: data.args}, 'From : ' + data.host + ':' + data.port)
|
||||
|
||||
}
|
||||
|
||||
setInterval(()=>{
|
||||
|
||||
if (receiveOscQueue.length > 0) {
|
||||
ipc.send('bundle',receiveOscQueue)
|
||||
receiveOscQueue = []
|
||||
}
|
||||
|
||||
}, 5)
|
||||
// setInterval(()=>{
|
||||
//
|
||||
// if (receiveOscQueue.length > 0) {
|
||||
// ipc.send('bundle',receiveOscQueue)
|
||||
// receiveOscQueue = []
|
||||
// }
|
||||
//
|
||||
// }, 5)
|
||||
|
||||
|
||||
var customModule = (function(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue