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 7ea533a commit 249305fCopy full SHA for 249305f
src/libprojectM/MilkdropPreset/CustomWaveform.cpp
@@ -104,7 +104,7 @@ void CustomWaveform::Draw(const PerFrameContext& presetPerFrameContext)
104
// PCM data smoothing
105
const int offset1 = m_spectrum ? 0 : (maxSampleCount - sampleCount) / 2 - m_sep / 2;
106
const int offset2 = m_spectrum ? 0 : (maxSampleCount - sampleCount) / 2 + m_sep / 2;
107
- 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;
108
const float mix1 = std::pow(m_smoothing * 0.98f, 0.5f);
109
const float mix2 = 1.0f - mix1;
110
0 commit comments