27 if (result<0.0f) result = 0;
28 if (result>1.0f) result = 1;
47 if (vc!=
nullptr) setVolumeControl(*vc);
56 if (p_vc==
nullptr)
return 1.0f;
57 if (abs(volume-in)<0.01f){
68 float in=1.0, out=1.0;
89 float b = pow(((1/ym)-1), 2);
90 float a = 1.0f / (b - 1.0f);
91 float volumeFactor = pow(b,input) * a - a;
92 return limit(volumeFactor);
109 float volumeFactor = pow(2.0, volume) - 1.0;
110 return limit(volumeFactor);
132 result = mapT<float>(volume, 0.0, x, 0, y );
134 result = mapT<float>(volume, x, 1.0, y, 1.0);
136 return limit(result);
152 is_limited = !allowBoost;
156 return is_limited ?
limit(volume) : volume;
176 return limit(callback(volume));
179 float (*callback)(
float in) =
nullptr;