Add API to PlaybackBuffer to compute amount of data that can overwritten

Multimedia / Ardour - Paul Davis [linuxaudiosystems.com] - 12 May 2020 17:34 EDT

The distance is between a given offset in the buffer (probably a read position at some point in time) and the write ptr. Any data after the write ptr is "old" and not readable, and thus not worth overwriting since we would not read it anyway.

98d56d6b21 Add API to PlaybackBuffer to compute amount of data that can overwritten
libs/pbd/pbd/playback_buffer.h | 12 ++++++++++++
1 file changed, 12 insertions(+)

  • Share