aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-02-22 18:01:34 -0800
committerChris Robinson <[email protected]>2020-02-22 18:01:34 -0800
commita37932a0d0d0fa6e32264ba17cf1229162add380 (patch)
treee27b5f2cb9e7f1a4e10f8d31257d7f867c17e4fc /al/source.cpp
parent6044e0d7ca142cb06e1dd84096d0c1ea4c67e739 (diff)
Fix voice allocation increase amount
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp2
1 files changed, 1 insertions, 1 deletions
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();