1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

AbstractFifo: Improve docs

This commit is contained in:
Tom Poole 2025-10-13 12:07:00 +01:00
parent 60c34d3ccb
commit be58c6de30
2 changed files with 7 additions and 3 deletions

View file

@ -35,7 +35,7 @@
namespace juce
{
AbstractFifo::AbstractFifo (int capacity) noexcept : bufferSize (capacity)
AbstractFifo::AbstractFifo (int backingBufferSize) noexcept : bufferSize (backingBufferSize)
{
jassert (bufferSize > 0);
}

View file

@ -85,8 +85,11 @@ class JUCE_API AbstractFifo
{
public:
//==============================================================================
/** Creates a FIFO to manage a buffer with the specified capacity. */
AbstractFifo (int capacity) noexcept;
/** Creates a FIFO to manage a buffer with the specified size.
The maximum number of items managed by the FIFO is 1 less than the buffer size.
*/
explicit AbstractFifo (int bufferSize) noexcept;
//==============================================================================
/** Returns the total size of the buffer being managed. */
@ -102,6 +105,7 @@ public:
void reset() noexcept;
/** Changes the buffer's total size.
Note that this isn't thread-safe, so don't call it if there's any danger that it
might overlap with a call to any other method in this class!
*/