diff options
author | Chris Robinson <[email protected]> | 2019-08-31 15:49:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-31 15:49:34 -0700 |
commit | 3973334a64f0aa428c9cbd06c89cfb60951810c8 (patch) | |
tree | 654595d4e772011a218e3405c81a8fe15d070f1b /alc/alu.h | |
parent | a546343148ad87786b1a199e9ca91ffc50da4e81 (diff) |
Store the voice fraction offset as unsigned
Diffstat (limited to 'alc/alu.h')
-rw-r--r-- | alc/alu.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -81,7 +81,7 @@ union InterpState { }; using ResamplerFunc = const ALfloat*(*)(const InterpState *state, const ALfloat *RESTRICT src, - ALsizei frac, ALint increment, const al::span<float> dst); + ALuint frac, ALint increment, const al::span<float> dst); void BsincPrepare(const ALuint increment, BsincState *state, const BSincTable *table); @@ -219,7 +219,7 @@ struct ALvoice { */ std::atomic<ALuint> mPosition; /** Fractional (fixed-point) offset to the next sample. */ - std::atomic<ALsizei> mPositionFrac; + std::atomic<ALuint> mPositionFrac; /* Current buffer queue item being played. */ std::atomic<ALbufferlistitem*> mCurrentBuffer; |