From d5b9606b20fecfa002c32928f236eefbfdf40d95 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Mon, 15 Jul 2024 18:50:54 -0300 Subject: [PATCH] Fix range limits for queueable source buffer counts. --- src/modules/audio/openal/Source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/audio/openal/Source.cpp b/src/modules/audio/openal/Source.cpp index dcb5f3674..b78ce21cf 100644 --- a/src/modules/audio/openal/Source.cpp +++ b/src/modules/audio/openal/Source.cpp @@ -176,13 +176,13 @@ Source::Source(Pool *pool, love::sound::Decoder *decoder) slotlist.push(i); } -Source::Source(Pool *pool, int sampleRate, int bitDepth, int channels, int buffers) +Source::Source(Pool *pool, int sampleRate, int bitDepth, int channels, int b) : love::audio::Source(Source::TYPE_QUEUE) , pool(pool) , sampleRate(sampleRate) , channels(channels) , bitDepth(bitDepth) - , buffers(buffers) + , buffers(b) { ALenum fmt = Audio::getFormat(bitDepth, channels); if (fmt == AL_NONE)