libevoral: add a new method to set the time domain that can be used from ::set_state(), when the event list is not (yet) empty
This commit is contained in:
parent
48ac681b03
commit
6d154c14b4
@ -2181,9 +2181,19 @@ ControlList::dump (ostream& o)
|
||||
void
|
||||
ControlList::set_time_domain (Temporal::TimeDomain td)
|
||||
{
|
||||
/* can only do this on an emtpy list */
|
||||
assert (_events.empty());
|
||||
_time_domain = td;
|
||||
/* XXX: TODO: apply to all points */
|
||||
}
|
||||
|
||||
void
|
||||
ControlList::set_time_domain_empty (Temporal::TimeDomain td)
|
||||
{
|
||||
/* the event list may or may not be empty, but we act as if it is. This
|
||||
is used in e.g. ::set_state(), since we do not need to modify the
|
||||
event time domains there.
|
||||
*/
|
||||
_time_domain = td;
|
||||
}
|
||||
|
||||
} // namespace Evoral
|
||||
|
@ -380,6 +380,8 @@ public:
|
||||
|
||||
virtual void maybe_signal_changed ();
|
||||
|
||||
void set_time_domain_empty (Temporal::TimeDomain td);
|
||||
|
||||
void _x_scale (Temporal::ratio_t const &);
|
||||
|
||||
mutable LookupCache _lookup_cache;
|
||||
|
Loading…
Reference in New Issue
Block a user