@@ -6,21 +6,39 @@ struct dmt::Settings::Audio
66 static inline auto & useOutputHighpass =
77 container.add<bool >(" Audio.UseOutputLowpass" , true );
88
9+ constexpr static float MIN_LOW_PASS_FREQ = 20 .0f ;
10+ constexpr static float MAX_LOW_PASS_FREQ = 20000 .0f ;
911 static inline auto & outputHighpassFrequency =
10- container .add < float > ("Audio.OutputLowpassFrequency" , 20.0f );
12+ container.add<float >(" Audio.OutputLowpassFrequency" ,
13+ 20 .0f ,
14+ &MIN_LOW_PASS_FREQ,
15+ &MAX_LOW_PASS_FREQ);
1116
17+ constexpr static float MIN_FRQUENCY_SMOOTHNESS = 0 .0f ;
18+ constexpr static float MAX_FRQUENCY_SMOOTHNESS = 1 .0f ;
1219 static inline auto & frequencySmoothness =
13- container .add < float > ("Audio.FrequencySmoothness" , 0.2f );
20+ container.add<float >(" Audio.FrequencySmoothness" ,
21+ 0 .2f ,
22+ &MIN_FRQUENCY_SMOOTHNESS,
23+ &MAX_FRQUENCY_SMOOTHNESS);
1424
25+ constexpr static float MIN_SPREAD_SMOOTHNESS = 0 .0f ;
26+ constexpr static float MAX_SPREAD_SMOOTHNESS = 1 .0f ;
1527 static inline auto & spreadSmoothness =
1628 container.add<float >(" Audio.SpreadSmoothness" , 0 .02f );
1729
30+ constexpr static float MIN_PINCH_SMOOTHNESS = 0 .0f ;
31+ constexpr static float MAX_PINCH_SMOOTHNESS = 1 .0f ;
1832 static inline auto & pinchSmoothness =
1933 container.add<float >(" Audio.PinchSmoothness" , 0 .02f );
2034
35+ constexpr static float MIN_MIX_SMOOTHNESS = 0 .0f ;
36+ constexpr static float MAX_MIX_SMOOTHNESS = 1 .0f ;
2137 static inline auto & mixSmoothness =
2238 container.add<float >(" Audio.MixSmoothness" , 0 .02f );
2339
40+ constexpr static int MIN_SMOOTHING_INTERVAL = 1 ;
41+ constexpr static int MAX_SMOOTHING_INTERVAL = 64 ;
2442 static inline auto & smoothingInterval =
2543 container.add<int >(" Audio.SmoothingInterval" , 32 );
2644};
0 commit comments