From 2721f2fc249f591a3c629add5793186e75323ffe Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 1 Feb 2017 23:20:27 +0100 Subject: [PATCH] Reduce continuous stream of warning messages (latent plugin, PH @ zero) --- libs/ardour/tempo.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index 18edabf2a1..469bbac4de 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -2242,7 +2242,9 @@ TempoMap::bbt_at_frame (framepos_t frame) bbt.bars = 1; bbt.beats = 1; bbt.ticks = 0; +#ifndef NDEBUG warning << string_compose (_("tempo map was asked for BBT time at frame %1\n"), frame) << endmsg; +#endif return bbt; } @@ -2346,7 +2348,9 @@ framepos_t TempoMap::frame_at_bbt (const BBT_Time& bbt) { if (bbt.bars < 1) { +#ifndef NDEBUG warning << string_compose (_("tempo map asked for frame time at bar < 1 (%1)\n"), bbt) << endmsg; +#endif return 0; }