13
0

remove debug output

This commit is contained in:
Robin Gareus 2014-06-16 23:58:52 +02:00
parent 33ea2d25f1
commit e426c603b6
2 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -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)) {