comparison data/midi/MIDIInput.cpp @ 843:e802e550a1f2

Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author Chris Cannam
date Tue, 26 Nov 2013 13:35:08 +0000
parents 1424aa29ae95
children 6b847a59d908
comparison
equal deleted inserted replaced
842:23d3a6eca5c3 843:e802e550a1f2
78 MIDIInput::postEvent(MIDIEvent e) 78 MIDIInput::postEvent(MIDIEvent e)
79 { 79 {
80 int count = 0, max = 5; 80 int count = 0, max = 5;
81 while (m_buffer.getWriteSpace() == 0) { 81 while (m_buffer.getWriteSpace() == 0) {
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 cerr << "ERROR: MIDIInput::postEvent: MIDI event queue is full and not clearing -- abandoning incoming event" << 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 cerr << "WARNING: MIDIInput::postEvent: MIDI event queue (capacity " << m_buffer.getSize() << " is full!" << endl;
87 SVDEBUG << "Waiting for something to be processed" << endl; 87 SVDEBUG << "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);