13
0

change inverse fades when changing fade length

git-svn-id: svn://localhost/ardour2/branches/3.0@12232 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-05-09 22:31:07 +00:00
parent 1b6bac8c54
commit 15b5e07ec4

View File

@ -1137,10 +1137,17 @@ AudioRegion::set_fade_in_length (framecnt_t len)
if (len > _length) {
len = _length - 1;
}
if (len < 64) {
len = 64;
}
bool changed = _fade_in->extend_to (len);
if (changed) {
if (_inverse_fade_in) {
_inverse_fade_in->extend_to (len);
}
_default_fade_in = false;
send_change (PropertyChange (Properties::fade_in));
}
@ -1153,9 +1160,16 @@ AudioRegion::set_fade_out_length (framecnt_t len)
len = _length - 1;
}
if (len < 64) {
len = 64;
}
bool changed = _fade_out->extend_to (len);
if (changed) {
if (_inverse_fade_out) {
_inverse_fade_out->extend_to (len);
}
_default_fade_out = false;
send_change (PropertyChange (Properties::fade_out));
}