decoder: round double to int

This commit is contained in:
itsmattkc
2020-02-20 19:24:59 +11:00
parent b231720398
commit 3bd1c885cf
+1 -1
View File
@@ -245,7 +245,7 @@ void Decoder::Conform(const AudioRenderingParams &params, const QAtomicInt* canc
ConformInternal(resampler, &conformed_output, read_samples.data(), in_sample_count);
read_count += read_samples.size();
emit IndexProgress(100.0 * static_cast<double>(read_count) / static_cast<double>(input.data_length()));
emit IndexProgress(qRound(100.0 * static_cast<double>(read_count) / static_cast<double>(input.data_length())));
}
// Flush resampler