From a37932a0d0d0fa6e32264ba17cf1229162add380 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 22 Feb 2020 18:01:34 -0800 Subject: Fix voice allocation increase amount --- al/source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/al/source.cpp b/al/source.cpp index 63212bee..76f6c54b 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -2697,7 +2697,7 @@ START_API_FUNC if(inc_amount > allvoices.size() - voicelist.size()) { /* Increase the number of voices to handle the request. */ - context->allocVoices(inc_amount > (allvoices.size() - voicelist.size())); + context->allocVoices(inc_amount - (allvoices.size() - voicelist.size())); } context->mActiveVoiceCount.fetch_add(inc_amount, std::memory_order_release); voicelist = context->getVoicesSpan(); -- cgit v1.2.3