diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-10-20 21:17:25 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-10-20 21:17:25 +0000 |
commit | fb917cff45c95f6cdc5705d411de7cd18e466d60 (patch) | |
tree | 759a28c44b3bf73f23a90a771ea81187087b4560 /libs/ardour/crossfade.cc | |
parent | 00ddd099ed5cd6e0d77448670381d13d88b96218 (diff) |
remove absurd internal Crossfade constructor that confused region start and region position; set position explicitly in the two places that we use these crossfades; revert to the assert that caught this crazy error
git-svn-id: svn://localhost/ardour2/branches/3.0@10259 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/crossfade.cc')
-rw-r--r-- | libs/ardour/crossfade.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/ardour/crossfade.cc b/libs/ardour/crossfade.cc index f06fcfb280..b2301b7167 100644 --- a/libs/ardour/crossfade.cc +++ b/libs/ardour/crossfade.cc @@ -85,9 +85,8 @@ Crossfade::operator== (const Crossfade& other) Crossfade::Crossfade (boost::shared_ptr<AudioRegion> in, boost::shared_ptr<AudioRegion> out, framecnt_t length, - framepos_t position, AnchorPoint ap) - : AudioRegion (in->session(), position, length, in->name() + string ("<>") + out->name()) + : AudioRegion (in->session(), 0, length, in->name() + string ("<>") + out->name()) , CROSSFADE_DEFAULT_PROPERTIES , _fade_in (Evoral::Parameter(FadeInAutomation)) // linear (gain coefficient) => -inf..+6dB , _fade_out (Evoral::Parameter(FadeOutAutomation)) // linear (gain coefficient) => -inf..+6dB |