@@ -309,9 +309,9 @@ class CrossoverDemo : public yup::Component
309309 freqSlider.setSkewFactorFromMidpoint (1000.0 );
310310 freqSlider.setValue (1000.0 );
311311 // freqSlider.setTextValueSuffix (" Hz");
312- freqSlider.onValueChanged = [this ] (float value)
312+ freqSlider.onValueChanged = [this ] (double value)
313313 {
314- crossoverFreq.setTargetValue (value);
314+ crossoverFreq.setTargetValue (( float ) value);
315315 setCrossoverFrequency (value);
316316 };
317317 addAndMakeVisible (freqSlider);
@@ -326,9 +326,9 @@ class CrossoverDemo : public yup::Component
326326 lowGainSlider.setRange (0.0 , 2.0 );
327327 lowGainSlider.setValue (1.0 );
328328 // lowGainSlider.setTextValueSuffix (" x");
329- lowGainSlider.onValueChanged = [this ] (float value)
329+ lowGainSlider.onValueChanged = [this ] (double value)
330330 {
331- lowGain.setTargetValue (value);
331+ lowGain.setTargetValue (( float ) value);
332332 };
333333 addAndMakeVisible (lowGainSlider);
334334
@@ -342,9 +342,9 @@ class CrossoverDemo : public yup::Component
342342 highGainSlider.setRange (0.0 , 2.0 );
343343 highGainSlider.setValue (1.0 );
344344 // highGainSlider.setTextValueSuffix (" x");
345- highGainSlider.onValueChanged = [this ] (float value)
345+ highGainSlider.onValueChanged = [this ] (double value)
346346 {
347- highGain.setTargetValue (value);
347+ highGain.setTargetValue (( float ) value);
348348 };
349349 addAndMakeVisible (highGainSlider);
350350
0 commit comments