From 883a94b762b8596bdb7bbb35f1c928a431baebf7 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 12 May 2014 15:02:25 +0100 Subject: [PATCH] Made sure that AbstractFifo::getFreeSpace returns the correct amount. --- modules/juce_core/containers/juce_AbstractFifo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/containers/juce_AbstractFifo.cpp b/modules/juce_core/containers/juce_AbstractFifo.cpp index c14625a2e8..65b1615c56 100644 --- a/modules/juce_core/containers/juce_AbstractFifo.cpp +++ b/modules/juce_core/containers/juce_AbstractFifo.cpp @@ -35,7 +35,7 @@ AbstractFifo::AbstractFifo (const int capacity) noexcept AbstractFifo::~AbstractFifo() {} int AbstractFifo::getTotalSize() const noexcept { return bufferSize; } -int AbstractFifo::getFreeSpace() const noexcept { return bufferSize - getNumReady(); } +int AbstractFifo::getFreeSpace() const noexcept { return bufferSize - getNumReady() - 1; } int AbstractFifo::getNumReady() const noexcept {