From 164626a7be1cd0a9b92d34b9bb7f5c891fe57fae Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Aug 2019 17:54:36 -0700 Subject: Pass unsigned sample count to aluMixData --- alc/panning.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/panning.cpp') diff --git a/alc/panning.cpp b/alc/panning.cpp index d946d1fc..5143b1ea 100644 --- a/alc/panning.cpp +++ b/alc/panning.cpp @@ -318,9 +318,9 @@ void InitDistanceComp(ALCdevice *device, const AmbDecConf *conf, const ALsizei ( delay = ALfloat{MAX_DELAY_LENGTH-1}; } - ChanDelay[chan].Length = static_cast(delay); + ChanDelay[chan].Length = static_cast(delay); ChanDelay[chan].Gain = speaker.Distance / maxdist; - TRACE("Channel %u \"%s\" distance compensation: %d samples, %f gain\n", chan, + TRACE("Channel %u \"%s\" distance compensation: %u samples, %f gain\n", chan, speaker.Name.c_str(), ChanDelay[chan].Length, ChanDelay[chan].Gain); /* Round up to the next 4th sample, so each channel buffer starts -- cgit v1.2.3