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 (fabs(volume-in)<0.01f){
67 float in=1.0, out=1.0;
88 float b = powf(((1/ym)-1), 2);
89 float a = 1.0f / (b - 1.0f);
90 float volumeFactor = powf(b,input) * a - a;
91 return limit(volumeFactor);
108 float volumeFactor = pow(2.0, volume) - 1.0;
109 return limit(volumeFactor);
131 result = mapT<float>(volume, 0.0, x, 0, y );
133 result = mapT<float>(volume, x, 1.0, y, 1.0);
135 return limit(result);
151 is_limited = !allowBoost;
155 return is_limited ?
limit(volume) : volume;
175 return limit(callback(volume));
178 float (*callback)(
float in) =
nullptr;