From e426c603b679903502989b2b36966e3fb2facd23 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 16 Jun 2014 23:58:52 +0200 Subject: [PATCH] remove debug output --- libs/ardour/mididm.cc | 4 ++-- libs/backends/alsa/alsa_audiobackend.cc | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/libs/ardour/mididm.cc b/libs/ardour/mididm.cc index 0123b0847f..53cf5d71b6 100644 --- a/libs/ardour/mididm.cc +++ b/libs/ardour/mididm.cc @@ -50,7 +50,7 @@ int MIDIDM::process (pframes_t nframes, PortEngine &pe, void *midi_in, void *mid /* process incoming */ const pframes_t nevents = pe.get_midi_event_count (midi_in); -#if 1 //DEBUG +#if 0 //DEBUG printf("MIDI SEND: @%8"PRId64", recv: %d systime:%"PRId64"\n", _monotonic_cnt, nevents, g_get_monotonic_time()); #endif for (pframes_t n = 0; n < nevents; ++n) { @@ -69,7 +69,7 @@ int MIDIDM::process (pframes_t nframes, PortEngine &pe, void *midi_in, void *mid const int64_t tc = (_monotonic_cnt + timestamp) & MASK; const int64_t ti = ((buf[2] & 0x7f) << 7) | (buf[1] & 0x7f); const int64_t tdiff = (MODX + tc - ti) % MODX; -#if 1 //DEBUG +#if 0 //DEBUG printf("MIDI DELAY: # %5"PRId64" %5"PRId64" [samples] (%5"PRId64" - %8"PRId64") @(%5"PRId64" + %d)\n", _cnt_total, tdiff, tc, ti, _monotonic_cnt, timestamp); #endif diff --git a/libs/backends/alsa/alsa_audiobackend.cc b/libs/backends/alsa/alsa_audiobackend.cc index c9b74058ab..4fd83d6714 100644 --- a/libs/backends/alsa/alsa_audiobackend.cc +++ b/libs/backends/alsa/alsa_audiobackend.cc @@ -1386,7 +1386,6 @@ AlsaAudioBackend::main_process_thread () PBD::error << _("AlsaAudioBackend: I/O error. Audio Process Terminated.") << endmsg; break; } - int gop = 0; while (nr >= (long)_samples_per_period) { uint32_t i = 0; clock1 = g_get_monotonic_time(); @@ -1459,10 +1458,6 @@ AlsaAudioBackend::main_process_thread () clock2 = g_get_monotonic_time(); const int64_t elapsed_time = clock2 - clock1; _dsp_load = elapsed_time / (float) nomial_time; - ++gop; - } - if (gop != 1) { - fprintf(stderr, "grouped audio periods %d != 1\n", gop); } if (xrun && (_pcmi->capt_xrun() > 0 || _pcmi->play_xrun() > 0)) {