Mercurial > hg > svcore
comparison data/osc/OSCQueue.cpp @ 1814:1318e069906b
Debug tweaks
author | Chris Cannam |
---|---|
date | Wed, 08 Jan 2020 15:26:49 +0000 |
parents | c077a97d055f |
children |
comparison
equal
deleted
inserted
replaced
1813:7e958685449d | 1814:1318e069906b |
---|---|
32 #include <unistd.h> | 32 #include <unistd.h> |
33 | 33 |
34 void | 34 void |
35 OSCQueue::oscError(int num, const char *msg, const char *path) | 35 OSCQueue::oscError(int num, const char *msg, const char *path) |
36 { | 36 { |
37 cerr << "ERROR: OSCQueue::oscError: liblo server error " << num | 37 SVCERR << "ERROR: OSCQueue::oscError: liblo server error " << num |
38 << " in path " << path << ": " << msg << endl; | 38 << " in path " << path << ": " << msg << endl; |
39 } | 39 } |
40 | 40 |
41 int | 41 int |
42 OSCQueue::oscMessageHandler(const char *path, const char *types, lo_arg **argv, | 42 OSCQueue::oscMessageHandler(const char *path, const char *types, lo_arg **argv, |
43 int argc, lo_message, void *user_data) | 43 int argc, lo_message, void *user_data) |
173 OSCQueue::readMessage() | 173 OSCQueue::readMessage() |
174 { | 174 { |
175 OSCMessage *message = m_buffer.readOne(); | 175 OSCMessage *message = m_buffer.readOne(); |
176 OSCMessage rmessage = *message; | 176 OSCMessage rmessage = *message; |
177 delete message; | 177 delete message; |
178 SVDEBUG << "OSCQueue::readMessage: In thread " | 178 SVDEBUG << "OSCQueue::readMessage[" << QThread::currentThreadId() << "]: " |
179 << QThread::currentThreadId() << ": message follows:\n" | |
180 << rmessage.toString() << endl; | 179 << rmessage.toString() << endl; |
181 return rmessage; | 180 return rmessage; |
182 } | 181 } |
183 | 182 |
184 void | 183 void |