diff options
Diffstat (limited to 'libs/ardour/beats_frames_converter.cc')
-rw-r--r-- | libs/ardour/beats_frames_converter.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/beats_frames_converter.cc b/libs/ardour/beats_frames_converter.cc index 10a1d44321..a960f1a221 100644 --- a/libs/ardour/beats_frames_converter.cc +++ b/libs/ardour/beats_frames_converter.cc @@ -27,6 +27,8 @@ namespace ARDOUR { framecnt_t BeatsFramesConverter::to (double beats) const { + assert (beats >= 0); + return _tempo_map.framepos_plus_bbt (_origin_b, Timecode::BBT_Time(beats)) - _origin_b; } |