From d1b335b36e30020ded4a00cc5ace911ba499965b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 19 Feb 2020 23:10:13 -0700 Subject: [PATCH] expose PlaybackBuffer::reservation and make the member const --- libs/pbd/pbd/playback_buffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/pbd/pbd/playback_buffer.h b/libs/pbd/pbd/playback_buffer.h index a7013b2110..d41f7420b6 100644 --- a/libs/pbd/pbd/playback_buffer.h +++ b/libs/pbd/pbd/playback_buffer.h @@ -172,10 +172,11 @@ public: guint read_ptr() const { return read_idx; } guint reserved_size() const { return reserved; } + guint reservation_size() const { return reservation; } private: T *buf; - guint reservation; + const guint reservation; guint size; guint size_mask;