@@ -435,7 +435,7 @@ class smoothing_dsp : public decorator_dsp {
435435 fInputPtrs .assign (getNumInputs (), nullptr );
436436 fOutputPtrs .assign (getNumOutputs (), nullptr );
437437 fSmoothingSec = smoothing_sec;
438- fSmoothingStep = std::max (1 , smoothing_step);
438+ fSmoothingStep = std::max< int > (1 , smoothing_step);
439439 fSmoothingSamples = 0 ;
440440 fRemaining = 0 ;
441441 resetSmoothingState ();
@@ -472,7 +472,7 @@ class smoothing_dsp : public decorator_dsp {
472472 // Build from a concrete dsp, selecting smoothing duration (seconds).
473473 smoothing_dsp (::dsp* dsp, double smoothing_sec = 0 , int smoothing_step = 1 )
474474 : decorator_dsp(dsp), fDecoder (nullptr ), fSmoothingSec (smoothing_sec), fSmoothingSamples (0 ),
475- fSmoothingStep (std::max(1 , smoothing_step)), fRemaining(0 ),
475+ fSmoothingStep (std::max< int > (1 , smoothing_step)), fRemaining(0 ),
476476 fSmoother()
477477 {
478478 // Build JSON description from the wrapped dsp and initialize smoothing
@@ -495,7 +495,7 @@ class smoothing_dsp : public decorator_dsp {
495495 // Build from explicit JSON and a concrete dsp, with smoothing settings.
496496 smoothing_dsp (const std::string& json, ::dsp* dsp, double smoothing_sec = 0 , int smoothing_step = 1 )
497497 : decorator_dsp(dsp), fDecoder(nullptr ), fSmoothingSec(smoothing_sec), fSmoothingSamples(0 ),
498- fSmoothingStep(std::max(1 , smoothing_step)), fRemaining(0 ),
498+ fSmoothingStep(std::max< int > (1 , smoothing_step)), fRemaining(0 ),
499499 fSmoother()
500500 {
501501 init (json, dsp, smoothing_sec, smoothing_step);
@@ -569,7 +569,7 @@ class smoothing_dsp : public decorator_dsp {
569569 int offset = 0 ;
570570 while (offset < count && fRemaining > 0 ) {
571571 // Update controls for this smoothing step and advance the ramp
572- int stepSize = std::min ({fSmoothingStep , fRemaining , count - offset});
572+ int stepSize = std::min< int > ({fSmoothingStep , fRemaining , count - offset});
573573 fSmoother .step (fControls , stepSize);
574574 fRemaining -= stepSize;
575575 if (fRemaining == 0 ) {
0 commit comments