mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 08:27:43 +01:00
fix for incorrect reading of fade in curve under a few circumstances
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4110 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5932ec19c4
commit
32b760d4c7
1 changed files with 6 additions and 6 deletions
|
|
@ -580,13 +580,13 @@ AudioRegion::_read_at (const SourceList& srcs, nframes_t limit,
|
|||
|
||||
if (internal_offset < fade_in_length) {
|
||||
|
||||
nframes_t limit;
|
||||
nframes_t fi_limit;
|
||||
|
||||
limit = min (to_read, fade_in_length - internal_offset);
|
||||
fi_limit = min (to_read, fade_in_length - internal_offset);
|
||||
|
||||
_fade_in.get_vector (internal_offset, internal_offset+limit, gain_buffer, limit);
|
||||
_fade_in.get_vector (internal_offset, internal_offset+fi_limit, gain_buffer, fi_limit);
|
||||
|
||||
for (nframes_t n = 0; n < limit; ++n) {
|
||||
for (nframes_t n = 0; n < fi_limit; ++n) {
|
||||
mixdown_buffer[n] *= gain_buffer[n];
|
||||
}
|
||||
}
|
||||
|
|
@ -599,12 +599,12 @@ AudioRegion::_read_at (const SourceList& srcs, nframes_t limit,
|
|||
/* see if some part of this read is within the fade out */
|
||||
|
||||
/* ................. >| REGION
|
||||
limit
|
||||
limit
|
||||
|
||||
{ } FADE
|
||||
fade_out_length
|
||||
^
|
||||
limit - fade_out_length
|
||||
limit - fade_out_length
|
||||
|--------------|
|
||||
^internal_offset
|
||||
^internal_offset + to_read
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue