diff options
author | Carl Hetherington <carl@carlh.net> | 2010-02-11 17:08:34 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-02-11 17:08:34 +0000 |
commit | 3a27410dcbaaca10480ffc14770b41c11e9ca1da (patch) | |
tree | 0b017597b99f3279dc3981033382a4d3f18a2b14 /libs/ardour/crossfade.cc | |
parent | 24fbade20a831fe629ed9bbc1d68a33ac1bd4d74 (diff) |
More tinkering with State<>. Use some StateDiffCommands instead of
MementoCommand<Region>. More use of State<> for Region members.
git-svn-id: svn://localhost/ardour2/branches/3.0@6675 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/crossfade.cc')
-rw-r--r-- | libs/ardour/crossfade.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/crossfade.cc b/libs/ardour/crossfade.cc index fd59982f62..a79dae5f07 100644 --- a/libs/ardour/crossfade.cc +++ b/libs/ardour/crossfade.cc @@ -314,7 +314,7 @@ Crossfade::read_at (Sample *buf, Sample *mixdown_buffer, start = _position; buf += offset; - to_write = min (_length, cnt); + to_write = min (_length.get(), cnt); } else { @@ -679,7 +679,7 @@ Crossfade::get_state () node->add_property ("active", (_active ? "yes" : "no")); node->add_property ("follow-overlap", (_follow_overlap ? "yes" : "no")); node->add_property ("fixed", (_fixed ? "yes" : "no")); - snprintf (buf, sizeof(buf), "%" PRIu32, _length); + snprintf (buf, sizeof(buf), "%" PRIu32, _length.get()); node->add_property ("length", buf); snprintf (buf, sizeof(buf), "%" PRIu32, (uint32_t) _anchor_point); node->add_property ("anchor-point", buf); |