Skip to content

Commit

Permalink
Fix build regression from #7380 (#7437)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossmaxx committed Aug 7, 2024
1 parent 828cefb commit 6c7fecd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/Sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#include "Sample.h"

#include "lmms_math.h"

#include <cassert>

namespace lmms {
Expand Down Expand Up @@ -143,7 +145,7 @@ bool Sample::play(SampleFrame* dst, PlaybackState* state, size_t numFrames, floa
const auto outputFrames = static_cast<f_cnt_t>(resampleResult.outputFramesGenerated);
if (outputFrames < numFrames) { std::fill_n(dst + outputFrames, numFrames - outputFrames, SampleFrame{}); }

if (!typeInfo<float>::isEqual(m_amplification, 1.0f))
if (!approximatelyEqual(m_amplification, 1.0f))
{
for (auto i = std::size_t{0}; i < numFrames; ++i)
{
Expand Down

0 comments on commit 6c7fecd

Please sign in to comment.