From 8e00b86ebb0b6e3fd489b4cac58863d7c16465db Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 16 Sep 2010 16:11:26 +0000 Subject: make resampled sources (during import) report their "natural position" (i.e. BWF timecode) using the samplerate of the session, not the original source, for correct positioning; minor frame{pos,cnt}_t cleanup git-svn-id: svn://localhost/ardour2/branches/3.0@7785 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/resampled_source.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/ardour/resampled_source.cc') diff --git a/libs/ardour/resampled_source.cc b/libs/ardour/resampled_source.cc index 675a0e426d..7379aa74af 100644 --- a/libs/ardour/resampled_source.cc +++ b/libs/ardour/resampled_source.cc @@ -134,3 +134,8 @@ ResampledImportableSource::seek (nframes_t pos) src_data.end_of_input = 0; } +framepos_t +ResampledImportableSource::natural_position () const +{ + return source->natural_position() * ratio (); +} -- cgit v1.2.3