aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/dedicated.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-10-22 13:56:05 -0700
committerChris Robinson <[email protected]>2023-10-22 13:56:05 -0700
commit197691365d112e170a8478fbbdcb38fd3826e418 (patch)
tree7f0150dd1c862af7f73b1893b576d30110882727 /alc/effects/dedicated.cpp
parent09b0d6091d9ef125fa7aac7514018f54793430b3 (diff)
Use a byte for the channel index
Diffstat (limited to 'alc/effects/dedicated.cpp')
-rw-r--r--alc/effects/dedicated.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp
index 9ac68bec..a9131bfa 100644
--- a/alc/effects/dedicated.cpp
+++ b/alc/effects/dedicated.cpp
@@ -74,7 +74,7 @@ void DedicatedState::update(const ContextBase*, const EffectSlot *slot,
if(slot->EffectType == EffectSlotType::DedicatedLFE)
{
- const uint idx{target.RealOut ? target.RealOut->ChannelIndex[LFE] : InvalidChannelIndex};
+ const size_t idx{target.RealOut ? target.RealOut->ChannelIndex[LFE] : InvalidChannelIndex};
if(idx != InvalidChannelIndex)
{
mOutTarget = target.RealOut->Buffer;
@@ -85,7 +85,7 @@ void DedicatedState::update(const ContextBase*, const EffectSlot *slot,
{
/* Dialog goes to the front-center speaker if it exists, otherwise it
* plays from the front-center location. */
- const uint idx{target.RealOut ? target.RealOut->ChannelIndex[FrontCenter]
+ const size_t idx{target.RealOut ? target.RealOut->ChannelIndex[FrontCenter]
: InvalidChannelIndex};
if(idx != InvalidChannelIndex)
{