diff options
author | Chris Robinson <[email protected]> | 2020-02-22 18:01:34 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-02-22 18:01:34 -0800 |
commit | a37932a0d0d0fa6e32264ba17cf1229162add380 (patch) | |
tree | e27b5f2cb9e7f1a4e10f8d31257d7f867c17e4fc /al/source.cpp | |
parent | 6044e0d7ca142cb06e1dd84096d0c1ea4c67e739 (diff) |
Fix voice allocation increase amount
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 2 |
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(); |