meter line-up and fall-off standard values & names

This commit is contained in:
Robin Gareus 2013-07-06 01:40:57 +02:00
parent 8427faf1fb
commit c1f56d4d7c
5 changed files with 40 additions and 20 deletions

View file

@ -442,8 +442,12 @@ meter_falloff_to_float (MeterFalloff falloff)
return METER_FALLOFF_SLOWEST;
case MeterFalloffSlow:
return METER_FALLOFF_SLOW;
case MeterFalloffSlowish:
return METER_FALLOFF_SLOWISH;
case MeterFalloffMedium:
return METER_FALLOFF_MEDIUM;
case MeterFalloffModerate:
return METER_FALLOFF_MODERATE;
case MeterFalloffFast:
return METER_FALLOFF_FAST;
case MeterFalloffFaster:
@ -467,6 +471,12 @@ meter_falloff_from_float (float val)
else if (val <= METER_FALLOFF_SLOW) {
return MeterFalloffSlow;
}
else if (val <= METER_FALLOFF_SLOWISH) {
return MeterFalloffSlowish;
}
else if (val <= METER_FALLOFF_MODERATE) {
return MeterFalloffModerate;
}
else if (val <= METER_FALLOFF_MEDIUM) {
return MeterFalloffMedium;
}