aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-24 21:49:12 -0700
committerChris Robinson <[email protected]>2019-09-24 21:49:12 -0700
commit16a715a2b51ca5563b21a6b694dd4a08728137b1 (patch)
tree6689651008ffc935edc8187fb12f9bc49e49528e /alc
parent6963712d46f1c6897dc887d8a7e3e8b734466589 (diff)
Fix unsigned 8-bit buffers
Diffstat (limited to 'alc')
-rw-r--r--alc/mixvoice.cpp2
1 files changed, 1 insertions, 1 deletions
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<FmtUByte> {
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<FmtShort> {