pcm/FloatConvert: use FloatToIntegerSampleConvert::factor for IntegerToFloatSampleConvert::factor
This commit is contained in:
parent
b0a6a569df
commit
a3f7127e72
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user