summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/session.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-03-31 12:59:44 +0200
committerRobin Gareus <robin@gareus.org>2017-03-31 14:01:50 +0200
commitf2c0b0ee3f4648d6306095a0232a2a1e499ea04f (patch)
tree8ad5624ef5a0cfe80d81fd3231ac005649cd8767 /libs/ardour/ardour/session.h
parent9436d0cb867e4a923cb5a8bc459fe62cb4d3a70e (diff)
Add an API to query if the audible frame is latent pending a locate
eg. at the end of a loop, the session may already be playing the beginning of the loop. The TransportLooped signal was emitted. Yet due to playback latency, the audible frame is still at the end of the loop. To interpolate the playhead position the UI needs to be able to know: Relying on the TransportLooped signal is not sufficient because it does not take playback latency into account.
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r--libs/ardour/ardour/session.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h
index ad2e69d083..8088858917 100644
--- a/libs/ardour/ardour/session.h
+++ b/libs/ardour/ardour/session.h
@@ -681,7 +681,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
framepos_t transport_frame () const {return _transport_frame; }
framepos_t record_location () const {return _last_record_location; }
- framepos_t audible_frame () const;
+ framepos_t audible_frame (bool* latent_locate = NULL) const;
framepos_t requested_return_frame() const { return _requested_return_frame; }
void set_requested_return_frame(framepos_t return_to);