diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-01 23:20:27 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-01 23:20:27 +0100 |
commit | 2721f2fc249f591a3c629add5793186e75323ffe (patch) | |
tree | bd5cdab61adf06e71dc97232abbb715059a58f9a | |
parent | ddd0e862cee83bbbf8361f083c07ad2c037d693e (diff) |
Reduce continuous stream of warning messages (latent plugin, PH @ zero)
-rw-r--r-- | libs/ardour/tempo.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |