Skip to content

Commit

Permalink
Win build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cannam committed Nov 17, 2023
1 parent 6cd48ab commit adc31e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/Resampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ D_IPP::D_IPP(Resampler::Quality /* quality */,
// elements with indices greater than m_time + length for the
// right filter wing for the last element.

m_history = int(m_window * 0.5 * max(1.0, 1.0 / m_factor)) + 1;
m_history = int(m_window * 0.5 * std::max(1.0, 1.0 / m_factor)) + 1;

m_state = new IppsResamplingPolyphase_32f *[m_channels];

Expand Down Expand Up @@ -305,7 +305,7 @@ D_IPP::resample(float *const BQ_R__ *const BQ_R__ out,
{
if (ratio > m_factor) {
m_factor = ratio;
m_history = int(m_window * 0.5 * max(1.0, 1.0 / m_factor)) + 1;
m_history = int(m_window * 0.5 * std::max(1.0, 1.0 / m_factor)) + 1;
}

if (m_debugLevel > 2) {
Expand Down Expand Up @@ -348,7 +348,7 @@ D_IPP::resampleInterleaved(float *const BQ_R__ out,
{
if (ratio > m_factor) {
m_factor = ratio;
m_history = int(m_window * 0.5 * max(1.0, 1.0 / m_factor)) + 1;
m_history = int(m_window * 0.5 * std::max(1.0, 1.0 / m_factor)) + 1;
}

if (m_debugLevel > 2) {
Expand Down

0 comments on commit adc31e7

Please sign in to comment.