From 3bd1c885cf3e1d783af4dc51b518bca5dfc43ee9 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Thu, 20 Feb 2020 19:24:59 +1100 Subject: [PATCH] decoder: round double to int --- app/codec/decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/codec/decoder.cpp b/app/codec/decoder.cpp index 69ec84038..9c4c234b6 100644 --- a/app/codec/decoder.cpp +++ b/app/codec/decoder.cpp @@ -245,7 +245,7 @@ void Decoder::Conform(const AudioRenderingParams ¶ms, const QAtomicInt* canc ConformInternal(resampler, &conformed_output, read_samples.data(), in_sample_count); read_count += read_samples.size(); - emit IndexProgress(100.0 * static_cast(read_count) / static_cast(input.data_length())); + emit IndexProgress(qRound(100.0 * static_cast(read_count) / static_cast(input.data_length()))); } // Flush resampler