diff --git a/src/pcm/PcmFormat.cxx b/src/pcm/PcmFormat.cxx index ca9f2e177..7c6eff790 100644 --- a/src/pcm/PcmFormat.cxx +++ b/src/pcm/PcmFormat.cxx @@ -263,12 +263,7 @@ pcm_allocate_24p32_to_32(PcmBuffer &buffer, ConstBuffer src) static ConstBuffer pcm_allocate_float_to_32(PcmBuffer &buffer, ConstBuffer src) { - /* convert to S24_P32 first */ - auto dest = pcm_allocate_float_to_24(buffer, src); - - /* convert to 32 bit in-place */ - Convert24To32().Convert(dest.data, dest.data, src.size); - return ToConst(dest); + return ToConst(AllocateFromFloat(buffer, src)); } ConstBuffer