From 3973334a64f0aa428c9cbd06c89cfb60951810c8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 31 Aug 2019 15:49:34 -0700 Subject: Store the voice fraction offset as unsigned --- alc/alu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/alu.h') diff --git a/alc/alu.h b/alc/alu.h index da6f6a94..51c5f702 100644 --- a/alc/alu.h +++ b/alc/alu.h @@ -81,7 +81,7 @@ union InterpState { }; using ResamplerFunc = const ALfloat*(*)(const InterpState *state, const ALfloat *RESTRICT src, - ALsizei frac, ALint increment, const al::span dst); + ALuint frac, ALint increment, const al::span dst); void BsincPrepare(const ALuint increment, BsincState *state, const BSincTable *table); @@ -219,7 +219,7 @@ struct ALvoice { */ std::atomic mPosition; /** Fractional (fixed-point) offset to the next sample. */ - std::atomic mPositionFrac; + std::atomic mPositionFrac; /* Current buffer queue item being played. */ std::atomic mCurrentBuffer; -- cgit v1.2.3