diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-26 19:29:41 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-26 19:29:41 +0000 |
commit | eda049116930e306231ce58d36e9b87bbe07b678 (patch) | |
tree | 004382b37002e207c420c2408ff78d31092955dd /libs | |
parent | 834f94c60a7f6ff2b0695096e9dbcd340dbca3af (diff) |
slightly explanatory comment for crossfading
git-svn-id: svn://localhost/ardour2/branches/3.0@12099 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/audioregion.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index e4a7504ec1..8992f8ccca 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -531,7 +531,12 @@ AudioRegion::_read_at (const SourceList& srcs, framecnt_t limit, } - /* APPLY FADES TO THE DATA IN mixdown_buffer AND MIX THE RESULTS INTO buf */ + /* APPLY FADES TO THE DATA IN mixdown_buffer AND MIX THE RESULTS INTO + * buf. The key things to realize here: (1) the fade being applied is + * (as of April 26th 2012) just the inverse of the fade in curve (2) + * "buf" contains data from lower regions already. So this operation + * fades out the existing material. + */ if (fade_in_limit != 0) { _fade_in->curve().get_vector (internal_offset, internal_offset + fade_in_limit, gain_buffer, fade_in_limit); |