diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2019-08-25 17:54:36 -0700 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2019-08-25 17:54:36 -0700 |
commit | 164626a7be1cd0a9b92d34b9bb7f5c891fe57fae (patch) | |
tree | 993608d71dc619472d017775b9f25e3c601f7222 /alc/panning.cpp | |
parent | b93098f7df73b877d40303ce3d9e4d9776a9c245 (diff) |
Pass unsigned sample count to aluMixData
Diffstat (limited to 'alc/panning.cpp')
-rw-r--r-- | alc/panning.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<ALsizei>(delay); + ChanDelay[chan].Length = static_cast<ALuint>(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 |