diff options
Diffstat (limited to 'src/pcm')
-rw-r--r-- | src/pcm/FloatConvert.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/FloatConvert.hxx b/src/pcm/FloatConvert.hxx index 5a1756b36..2270fbb90 100644 --- a/src/pcm/FloatConvert.hxx +++ b/src/pcm/FloatConvert.hxx @@ -54,7 +54,7 @@ struct IntegerToFloatSampleConvert { typedef typename SrcTraits::value_type SV; typedef typename DstTraits::value_type DV; - static constexpr DV factor = 0.5 / (1 << (SrcTraits::BITS - 2)); + static constexpr DV factor = 1.0 / FloatToIntegerSampleConvert<F, Traits>::factor; static_assert(factor > 0, "Wrong factor"); gcc_const |