diff options
Diffstat (limited to 'libs/ardour/ardour/beats_frames_converter.h')
-rw-r--r-- | libs/ardour/ardour/beats_frames_converter.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/ardour/ardour/beats_frames_converter.h b/libs/ardour/ardour/beats_frames_converter.h index 7134ea2fe9..9db4448ebb 100644 --- a/libs/ardour/ardour/beats_frames_converter.h +++ b/libs/ardour/ardour/beats_frames_converter.h @@ -27,24 +27,24 @@ namespace ARDOUR { -class Session; +class TempoMap; class BeatsFramesConverter : public Evoral::TimeConverter<double,sframes_t> { public: - BeatsFramesConverter(Session& session, sframes_t origin) - : _session(session) + BeatsFramesConverter(const TempoMap& tempo_map, sframes_t origin) + : _tempo_map(tempo_map) , _origin(origin) {} sframes_t to(double beats) const; double from(sframes_t frames) const; - sframes_t origin() const { return _origin; } - void set_origin(sframes_t origin) { _origin = origin; } + sframes_t origin() const { return _origin; } + void set_origin(sframes_t origin) { _origin = origin; } private: - Session& _session; - sframes_t _origin; + const TempoMap& _tempo_map; + sframes_t _origin; }; } /* namespace ARDOUR */ |