Mercurial > hg > svcore
comparison data/midi/MIDIInput.cpp @ 687:06f13a3b9e9e debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:09 +0100 |
parents | d7f3dfe6f9a4 |
children | 1424aa29ae95 |
comparison
equal
deleted
inserted
replaced
686:b4a8d8221eaf | 687:06f13a3b9e9e |
---|---|
48 } | 48 } |
49 | 49 |
50 void | 50 void |
51 MIDIInput::callback(double timestamp, std::vector<unsigned char> *message) | 51 MIDIInput::callback(double timestamp, std::vector<unsigned char> *message) |
52 { | 52 { |
53 std::cerr << "MIDIInput::callback(" << timestamp << ")" << std::endl; | 53 DEBUG << "MIDIInput::callback(" << timestamp << ")" << endl; |
54 // In my experience so far, the timings passed to this function | 54 // In my experience so far, the timings passed to this function |
55 // are not reliable enough to use. We request instead an audio | 55 // are not reliable enough to use. We request instead an audio |
56 // frame time from whatever FrameTimer we have been given, and use | 56 // frame time from whatever FrameTimer we have been given, and use |
57 // that as the event time. | 57 // that as the event time. |
58 if (!message || message->empty()) return; | 58 if (!message || message->empty()) return; |
82 if (count == max) { | 82 if (count == max) { |
83 std::cerr << "ERROR: MIDIInput::postEvent: MIDI event queue is full and not clearing -- abandoning incoming event" << std::endl; | 83 std::cerr << "ERROR: MIDIInput::postEvent: MIDI event queue is full and not clearing -- abandoning incoming event" << std::endl; |
84 return; | 84 return; |
85 } | 85 } |
86 std::cerr << "WARNING: MIDIInput::postEvent: MIDI event queue (capacity " << m_buffer.getSize() << " is full!" << std::endl; | 86 std::cerr << "WARNING: MIDIInput::postEvent: MIDI event queue (capacity " << m_buffer.getSize() << " is full!" << std::endl; |
87 std::cerr << "Waiting for something to be processed" << std::endl; | 87 DEBUG << "Waiting for something to be processed" << endl; |
88 #ifdef _WIN32 | 88 #ifdef _WIN32 |
89 Sleep(1); | 89 Sleep(1); |
90 #else | 90 #else |
91 sleep(1); | 91 sleep(1); |
92 #endif | 92 #endif |