We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac5c24 commit f55d4a9Copy full SHA for f55d4a9
src/libprojectM/MilkdropPreset/CustomWaveform.cpp
@@ -115,7 +115,7 @@ void CustomWaveform::Draw(const PerFrameContext& presetPerFrameContext)
115
// PCM data smoothing
116
const int offset1 = m_spectrum ? 0 : (maxSampleCount - sampleCount) / 2 - m_sep / 2;
117
const int offset2 = m_spectrum ? 0 : (maxSampleCount - sampleCount) / 2 + m_sep / 2;
118
- const int t = m_spectrum ? static_cast<int>(static_cast<float>(maxSampleCount - m_sep) / static_cast<float>(sampleCount)) : 1;
+ const float t = m_spectrum ? static_cast<float>(maxSampleCount - m_sep) / static_cast<float>(sampleCount) : 1.0f;
119
const float mix1 = std::pow(m_smoothing * 0.98f, 0.5f);
120
const float mix2 = 1.0f - mix1;
121
0 commit comments