summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/resampled_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour/resampled_source.h')
-rw-r--r--libs/ardour/ardour/resampled_source.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/ardour/resampled_source.h b/libs/ardour/ardour/resampled_source.h
index 513fddbb75..cb3805667b 100644
--- a/libs/ardour/ardour/resampled_source.h
+++ b/libs/ardour/ardour/resampled_source.h
@@ -40,7 +40,9 @@ class ResampledImportableSource : public ImportableSource
nframes_t length() const { return source->length(); }
nframes_t samplerate() const { return source->samplerate(); }
void seek (nframes_t pos) { source->seek (pos); }
- nframes_t natural_position() const { return source->natural_position(); }
+
+ /*Convert start time so that imported file still lands at the correct timecode*/
+ nframes_t natural_position() const { return (source->natural_position() * ratio()); }
static const uint32_t blocksize;