comparison data/osc/OSCQueue.cpp @ 690:1424aa29ae95

Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author Chris Cannam
date Tue, 14 Jun 2011 15:26:52 +0100
parents 06f13a3b9e9e
children e802e550a1f2
comparison
equal deleted inserted replaced
689:573d45e9487b 690:1424aa29ae95
165 if (count == max) { 165 if (count == max) {
166 std::cerr << "ERROR: OSCQueue::postMessage: OSC message queue is full and not clearing -- abandoning incoming message" << std::endl; 166 std::cerr << "ERROR: OSCQueue::postMessage: OSC message queue is full and not clearing -- abandoning incoming message" << std::endl;
167 return; 167 return;
168 } 168 }
169 std::cerr << "WARNING: OSCQueue::postMessage: OSC message queue (capacity " << m_buffer.getSize() << " is full!" << std::endl; 169 std::cerr << "WARNING: OSCQueue::postMessage: OSC message queue (capacity " << m_buffer.getSize() << " is full!" << std::endl;
170 DEBUG << "Waiting for something to be processed" << endl; 170 SVDEBUG << "Waiting for something to be processed" << endl;
171 #ifdef _WIN32 171 #ifdef _WIN32
172 Sleep(1); 172 Sleep(1);
173 #else 173 #else
174 sleep(1); 174 sleep(1);
175 #endif 175 #endif
176 count++; 176 count++;
177 } 177 }
178 178
179 OSCMessage *mp = new OSCMessage(message); 179 OSCMessage *mp = new OSCMessage(message);
180 m_buffer.write(&mp, 1); 180 m_buffer.write(&mp, 1);
181 DEBUG << "OSCQueue::postMessage: Posted OSC message: target " 181 SVDEBUG << "OSCQueue::postMessage: Posted OSC message: target "
182 << message.getTarget() << ", target data " << message.getTargetData() 182 << message.getTarget() << ", target data " << message.getTargetData()
183 << ", method " << message.getMethod() << endl; 183 << ", method " << message.getMethod() << endl;
184 emit messagesAvailable(); 184 emit messagesAvailable();
185 } 185 }
186 186
217 << "target/method or method, where target and data " 217 << "target/method or method, where target and data "
218 << "are numeric)" << std::endl; 218 << "are numeric)" << std::endl;
219 return false; 219 return false;
220 } 220 }
221 221
222 DEBUG << "OSCQueue::parseOSCPath: good path \"" << path << "\"" << endl; 222 SVDEBUG << "OSCQueue::parseOSCPath: good path \"" << path << "\"" << endl;
223 223
224 return true; 224 return true;
225 } 225 }
226 226