From 365ff8302ea90312900e95581ccd5087977285da Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 21 Aug 2021 13:27:14 -0700 Subject: Add PipeWire capture support --- common/ringbuffer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/ringbuffer.h') diff --git a/common/ringbuffer.h b/common/ringbuffer.h index fa8fce10..9628505c 100644 --- a/common/ringbuffer.h +++ b/common/ringbuffer.h @@ -98,6 +98,8 @@ public: void writeAdvance(size_t cnt) noexcept { mWritePtr.fetch_add(cnt, std::memory_order_acq_rel); } + size_t getElemSize() const noexcept { return mElemSize; } + /** * Create a new ringbuffer to hold at least `sz' elements of `elem_sz' * bytes. The number of elements is rounded up to the next power of two -- cgit v1.2.3