temporal: TempoMap::use() returns a const ptr to enforce semantics (GUI version)

Multimedia / Ardour - Paul Davis [linuxaudiosystems.com] - 8 April 2022 17:58 UTC

This commit leaves two issues outstanding:

1. unclear/ugly semantics for drag operations that reset the GUI thread's tempo map to the writable copy 2. undo/redo for the tempo map

These will be addressed in future commits

883a44e6a4 temporal: TempoMap::use() returns a const ptr to enforce semantics (GUI version)
gtk2_ardour/editor.h | 1 -
gtk2_ardour/editor_audio_import.cc | 2 +-
gtk2_ardour/editor_drag.cc | 49 +++++++++++++-------------------------
gtk2_ardour/editor_drag.h | 6 +++++
gtk2_ardour/editor_markers.cc | 6 ++---
gtk2_ardour/editor_ops.cc | 6 ++---
gtk2_ardour/editor_tempodisplay.cc | 35 +++++++++++----------------
7 files changed, 44 insertions(+), 61 deletions(-)

  • Share