From 79ed9f203679c7d79471ae09076387621ab460b5 Mon Sep 17 00:00:00 2001 From: squidbus <175574877+squidbus@users.noreply.github.com> Date: Fri, 27 Dec 2024 10:24:21 -0800 Subject: [PATCH] common: Rename ring_buffer_base to RingBuffer. --- src/common/ringbuffer.h | 6 +++--- src/core/libraries/audio/cubeb_audio.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/ringbuffer.h b/src/common/ringbuffer.h index fea9bb51c..6a71c2888 100644 --- a/src/common/ringbuffer.h +++ b/src/common/ringbuffer.h @@ -44,17 +44,17 @@ * data for further processing. */ template -class ring_buffer_base { +class RingBuffer { public: /** * Constructor for a ring buffer. * * This performs an allocation, but is the only allocation that will happen - * for the life time of a `ring_buffer_base`. + * for the life time of a `RingBuffer`. * * @param capacity The maximum number of element this ring buffer will hold. */ - ring_buffer_base(int capacity) + RingBuffer(int capacity) /* One more element to distinguish from empty and full buffer. */ : capacity_(capacity + 1) { ASSERT(storage_capacity() < std::numeric_limits::max() / 2 && diff --git a/src/core/libraries/audio/cubeb_audio.cpp b/src/core/libraries/audio/cubeb_audio.cpp index ca0af6b34..ca0a4c3b6 100644 --- a/src/core/libraries/audio/cubeb_audio.cpp +++ b/src/core/libraries/audio/cubeb_audio.cpp @@ -131,7 +131,7 @@ private: } size_t frame_size; - ring_buffer_base buffer; + RingBuffer buffer; std::mutex buffer_mutex; std::condition_variable buffer_cv; cubeb_stream* stream{};