From 16a715a2b51ca5563b21a6b694dd4a08728137b1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 24 Sep 2019 21:49:12 -0700 Subject: Fix unsigned 8-bit buffers --- alc/mixvoice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp index 99e4dc48..bfb3b663 100644 --- a/alc/mixvoice.cpp +++ b/alc/mixvoice.cpp @@ -301,7 +301,7 @@ template<> struct FmtTypeTraits { using Type = ALubyte; static constexpr inline float to_float(const Type val) noexcept - { return val*(1.0f/128.0f) - 128.0f; } + { return val*(1.0f/128.0f) - 1.0f; } }; template<> struct FmtTypeTraits { -- cgit v1.2.3