comparison data/osc/OSCQueue.cpp @ 1665:813dadf7c086 osc-script

Debug output
author Chris Cannam
date Tue, 26 Mar 2019 14:28:58 +0000
parents 70e172e6cc59
children 1078f0ef3012
comparison
equal deleted inserted replaced
1664:f66ad018b729 1665:813dadf7c086
27 #define OSC_MESSAGE_QUEUE_SIZE 1023 27 #define OSC_MESSAGE_QUEUE_SIZE 1023
28 28
29 #ifdef HAVE_LIBLO 29 #ifdef HAVE_LIBLO
30 30
31 #include <unistd.h> 31 #include <unistd.h>
32
33 #include <QThread>
32 34
33 void 35 void
34 OSCQueue::oscError(int num, const char *msg, const char *path) 36 OSCQueue::oscError(int num, const char *msg, const char *path)
35 { 37 {
36 cerr << "ERROR: OSCQueue::oscError: liblo server error " << num 38 cerr << "ERROR: OSCQueue::oscError: liblo server error " << num
153 OSCQueue::readMessage() 155 OSCQueue::readMessage()
154 { 156 {
155 OSCMessage *message = m_buffer.readOne(); 157 OSCMessage *message = m_buffer.readOne();
156 OSCMessage rmessage = *message; 158 OSCMessage rmessage = *message;
157 delete message; 159 delete message;
160 SVDEBUG << "OSCQueue::readMessage: In thread "
161 << QThread::currentThreadId() << ": message follows:\n"
162 << rmessage.toString() << endl;
158 return rmessage; 163 return rmessage;
159 } 164 }
160 165
161 void 166 void
162 OSCQueue::postMessage(OSCMessage message) 167 OSCQueue::postMessage(OSCMessage message)