From 3f7791bbfe3ff8b8896607098805095d53e7514d Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 13 Dec 2021 11:54:05 +0000 Subject: [PATCH] ASIO: Include max size when adding supported buffer sizes --- modules/juce_audio_devices/native/juce_win32_ASIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_devices/native/juce_win32_ASIO.cpp b/modules/juce_audio_devices/native/juce_win32_ASIO.cpp index e2a4b0720d..6ac705e021 100644 --- a/modules/juce_audio_devices/native/juce_win32_ASIO.cpp +++ b/modules/juce_audio_devices/native/juce_win32_ASIO.cpp @@ -919,7 +919,7 @@ private: { granularity = jmax (16, (int) granularity); - for (int i = jmax ((int) (minSize + 15) & ~15, (int) granularity); i < jmin (6400, (int) maxSize); i += granularity) + for (int i = jmax ((int) (minSize + 15) & ~15, (int) granularity); i <= jmin (6400, (int) maxSize); i += granularity) bufferSizes.addIfNotAlreadyThere (granularity * (i / granularity)); } else if (granularity < 0)