diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 4ef78b659e..55cdccd52b 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -529,7 +529,7 @@ timecnt_t AudioRegion::tail () const { if (_fade_before_fx && has_region_fx ()) { - return timecnt_t (_session.sample_rate ()); // TODO use plugin API + return timecnt_t ((samplecnt_t)_fx_tail); } else { return timecnt_t (0); }