diff options
author | Robin Gareus <robin@gareus.org> | 2015-11-28 22:54:00 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-11-28 22:54:00 +0100 |
commit | 5bdab247469c0d85c482f5e5f19cfd11933b0d68 (patch) | |
tree | 7e524a1092bc1169985036fd27db9b0ddb53ab72 /libs/backends/dummy | |
parent | 1fd04baeb36f9963a1770586492ed2d59f45d72c (diff) |
add some midi-debug printf() to the dummy backend
Diffstat (limited to 'libs/backends/dummy')
-rw-r--r-- | libs/backends/dummy/dummy_audiobackend.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/backends/dummy/dummy_audiobackend.cc b/libs/backends/dummy/dummy_audiobackend.cc index b3cfd39186..130a92dc5f 100644 --- a/libs/backends/dummy/dummy_audiobackend.cc +++ b/libs/backends/dummy/dummy_audiobackend.cc @@ -1028,9 +1028,16 @@ DummyAudioBackend::midi_event_put ( DummyMidiBuffer& dst = * static_cast<DummyMidiBuffer*>(port_buffer); if (dst.size () && (pframes_t)dst.back ()->timestamp () > timestamp) { // nevermind, ::get_buffer() sorts events, but always print warning - fprintf (stderr, "DummyMidiBuffer: it's too late for this event.\n"); + fprintf (stderr, "DummyMidiBuffer: it's too late for this event %d > %d.\n", (pframes_t)dst.back ()->timestamp (), timestamp); } dst.push_back (boost::shared_ptr<DummyMidiEvent>(new DummyMidiEvent (timestamp, buffer, size))); +#if 0 // DEBUG MIDI EVENTS + printf("DummyAudioBackend::midi_event_put %d, %zu: ", timestamp, size); + for (size_t xx = 0; xx < size; ++xx) { + printf(" %02x", buffer[xx]); + } + printf("\n"); +#endif return 0; } |