From 75ede0dd6bda0136aef612b0e427ae25b208d0d0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 30 Dec 2010 15:45:48 +0000 Subject: change Session::convert_to_frames_at() to Session::convert_to_frames() to reflect the fact that its argument is a position, not a duration; add Session::any_duration_to_frames(), which converts AnyTime representing a duration to frames; alter callers to use the right one of the two previously mentioned methods git-svn-id: svn://localhost/ardour2/branches/3.0@8386 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/export_format_specification.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/export_format_specification.cc') diff --git a/libs/ardour/export_format_specification.cc b/libs/ardour/export_format_specification.cc index b85d060e2f..bf2585a281 100644 --- a/libs/ardour/export_format_specification.cc +++ b/libs/ardour/export_format_specification.cc @@ -49,7 +49,7 @@ ExportFormatSpecification::Time::operator= (AnyTime const & other) framecnt_t ExportFormatSpecification::Time::get_frames_at (framepos_t position, framecnt_t target_rate) const { - framecnt_t duration = session.convert_to_frames_at (position, *this); + framecnt_t duration = session.any_duration_to_frames (position, *this); return ((double) target_rate / session.frame_rate()) * duration + 0.5; } -- cgit v1.2.3