mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
tweak local tempo scope infrastructure
This commit is contained in:
parent
22abddcd95
commit
1ecb28da47
2 changed files with 0 additions and 5 deletions
|
|
@ -1754,16 +1754,12 @@ EditingContext::snap_relative_time_to_relative_time (timepos_t const & origin, t
|
||||||
void
|
void
|
||||||
EditingContext::start_local_tempo_map (std::shared_ptr<TempoMap> map)
|
EditingContext::start_local_tempo_map (std::shared_ptr<TempoMap> map)
|
||||||
{
|
{
|
||||||
EC_LOCAL_TEMPO_SCOPE;
|
|
||||||
|
|
||||||
_local_tempo_map = map;
|
_local_tempo_map = map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
EditingContext::end_local_tempo_map ()
|
EditingContext::end_local_tempo_map ()
|
||||||
{
|
{
|
||||||
EC_LOCAL_TEMPO_SCOPE;
|
|
||||||
|
|
||||||
_local_tempo_map.reset ();
|
_local_tempo_map.reset ();
|
||||||
Temporal::TempoMap::fetch ();
|
Temporal::TempoMap::fetch ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -837,7 +837,6 @@ class EditingContext : public ARDOUR::SessionHandlePtr, public AxisViewProvider,
|
||||||
void ensure_local_tempo_scope () const {
|
void ensure_local_tempo_scope () const {
|
||||||
if (_local_tempo_map) {
|
if (_local_tempo_map) {
|
||||||
Temporal::TempoMap::set (_local_tempo_map);
|
Temporal::TempoMap::set (_local_tempo_map);
|
||||||
_local_tempo_map.reset ();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue