summaryrefslogtreecommitdiff
path: root/libs/ardour/mididm.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-06-19 19:43:13 +0200
committerRobin Gareus <robin@gareus.org>2014-06-19 19:44:15 +0200
commit8c8928a99cb711ae0b3b79a7dcfdcf4be1761ede (patch)
tree91f69f8cc26efc086561a525887e2de12236a130 /libs/ardour/mididm.cc
parentedd9e730ef49bd051fc2d11e4f6ff3df05ce8272 (diff)
no more stack smashing, renice debug messages
Diffstat (limited to 'libs/ardour/mididm.cc')
-rw-r--r--libs/ardour/mididm.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/mididm.cc b/libs/ardour/mididm.cc
index 8fe6b50460..0888d154e9 100644
--- a/libs/ardour/mididm.cc
+++ b/libs/ardour/mididm.cc
@@ -45,7 +45,7 @@ MIDIDM::parse_mclk (uint8_t* buf, pframes_t timestamp) const
const int64_t ti = ((buf[2] & 0x7f) << 7) | (buf[1] & 0x7f);
const int64_t tdiff = (MODCLK + tc - ti) % MODCLK;
#ifdef DEBUG_MIDIDM
- printf("MCLK DELAY: # %5"PRId64" %5"PRId64" [samples] (%5"PRId64" - %8"PRId64") @(%5"PRId64" + %d)\n",
+ printf("MCLK DELAY: #%5"PRId64" dt:%6"PRId64" [spl] (%6"PRId64" - %8"PRId64") @(%8"PRId64" + %d)\n",
_cnt_total, tdiff, tc, ti, _monotonic_cnt, timestamp);
#endif
return tdiff;
@@ -62,7 +62,7 @@ MIDIDM::parse_mtc (uint8_t* buf, pframes_t timestamp) const
| ((buf[8] & 0x7f) << 21);
const int64_t tdiff = (MODTC + tc - ti) % MODTC;
#ifdef DEBUG_MIDIDM
- printf("MTC DELAY: # %5"PRId64" %5"PRId64" [samples] (%5"PRId64" - %8"PRId64") @(%5"PRId64" + %d)\n",
+ printf("MTC DELAY: #%5"PRId64" dt:%6"PRId64" [spl] (%6"PRId64" - %8"PRId64") @(%8"PRId64" + %d)\n",
_cnt_total, tdiff, tc, ti, _monotonic_cnt, timestamp);
#endif
return tdiff;
@@ -79,7 +79,7 @@ int MIDIDM::process (pframes_t nframes, PortEngine &pe, void *midi_in, void *mid
obuf[2] = (_monotonic_cnt >> 7) & 0x7f;
pe.midi_event_put (midi_out, 0, obuf, 3);
#else // sysex MTC frame
- uint8_t obuf[9];
+ uint8_t obuf[10];
obuf[0] = 0xf0;
obuf[1] = 0x7f;
obuf[2] = 0x7f;