Convert integer samples to float using a power-of-2 divisor
commitac8b4aa5f66db68609459a9444c2a7083b2e8f28
authorChris Robinson <chris.kcat@gmail.com>
Fri, 31 Mar 2017 13:54:46 +0000 (31 06:54 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Fri, 31 Mar 2017 13:54:46 +0000 (31 06:54 -0700)
treed4f05d86836bcfba85fdb8accee4a95034fbad2d
parent9fb07101dc0ab5b7f2785584b4c29e18232ba99c
Convert integer samples to float using a power-of-2 divisor

This should cut down on unnecessary quantization noise (however minor) for 8-
and 16-bit samples. Unfortunately a power-of-2 multiple can't be used as easily
for converting float samples to integer, due to integer types having a non-
power-of-2 maximum amplitude (it'd require more per-sample clamping).
Alc/mixer.c
OpenAL32/sample_cvt.c