From 5bdab247469c0d85c482f5e5f19cfd11933b0d68 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 28 Nov 2015 22:54:00 +0100 Subject: add some midi-debug printf() to the dummy backend --- libs/backends/dummy/dummy_audiobackend.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libs/backends') 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(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(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; } -- cgit v1.2.3