diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-19 19:02:50 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-19 19:03:16 +0200 |
commit | 7999c0363fe6c21c54999ca83935d048b0ac5b2b (patch) | |
tree | f139a9ce5001f4b186155860547d9884cb283663 | |
parent | c69a9d7a0693ca33eb3ffe941fa5bf14faf216a8 (diff) |
show no/inplace info in Pin Dialog (debug builds only)
.. also only show latency (relevant for thru) in debug-builds.
-rw-r--r-- | gtk2_ardour/plugin_pin_dialog.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk2_ardour/plugin_pin_dialog.cc b/gtk2_ardour/plugin_pin_dialog.cc index e192fad4ba..fcd6cf19c1 100644 --- a/gtk2_ardour/plugin_pin_dialog.cc +++ b/gtk2_ardour/plugin_pin_dialog.cc @@ -973,15 +973,22 @@ PluginPinDialog::darea_expose_event (GdkEventExpose* ev) cairo_set_source_rgba (cr, 1., 1., 1., 1.); pango_cairo_show_layout (cr, layout->gobj ()); - if (_pi->signal_latency () > 0) { - // TODO: this needs a better location also format to msec (and cache) +#ifndef NDEBUG + if (_pi->signal_latency () > 0 || !_pi->inplace()) { layout->set_width ((_innerwidth - 2 * _pin_box_size) * PANGO_SCALE); - layout->set_text (string_compose (_("Latency %1 spl"), _pi->signal_latency ())); + if (_pi->signal_latency () > 0 && !_pi->inplace()) { + layout->set_text (string_compose (_("Latency %1 spl%2 %3"), _pi->signal_latency (), ", ", _("no-inplace"))); + } else if (_pi->signal_latency () > 0) { + layout->set_text (string_compose (_("Latency %1 spl"), _pi->signal_latency ())); + } else { + layout->set_text (_("no-inplace")); + } layout->get_pixel_size (text_width, text_height); cairo_move_to (cr, _margin_x + _pin_box_size * .5, _margin_y + 2); cairo_set_source_rgba (cr, 1., 1., 1., 1.); pango_cairo_show_layout (cr, layout->gobj ()); } +#endif if (_pi->strict_io () && !Profile->get_mixbus ()) { layout->set_text (_("Strict I/O")); |