1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-30 05:59:07 +00:00

convert mixer bars to double

This commit is contained in:
Phil Sutter 2009-12-04 02:12:59 +01:00
parent 1160e74d35
commit 3764c883c7
2 changed files with 6 additions and 6 deletions

View File

@ -320,17 +320,17 @@ void scan_mixer_bar(struct text_object *obj, const char *arg)
}
}
uint8_t mixer_barval(struct text_object *obj)
double mixer_barval(struct text_object *obj)
{
return mixer_to_255(obj->data.i, mixer_get_avg(obj->data.i));
}
uint8_t mixerl_barval(struct text_object *obj)
double mixerl_barval(struct text_object *obj)
{
return mixer_to_255(obj->data.i, mixer_get_left(obj->data.i));
}
uint8_t mixerr_barval(struct text_object *obj)
double mixerr_barval(struct text_object *obj)
{
return mixer_to_255(obj->data.i, mixer_get_right(obj->data.i));
}

View File

@ -10,8 +10,8 @@ uint8_t mixerr_percentage(struct text_object *obj);
int check_mixer_muted(struct text_object *);
void scan_mixer_bar(struct text_object *, const char *);
uint8_t mixer_barval(struct text_object *);
uint8_t mixerl_barval(struct text_object *);
uint8_t mixerr_barval(struct text_object *);
double mixer_barval(struct text_object *);
double mixerl_barval(struct text_object *);
double mixerr_barval(struct text_object *);
#endif /*MIXER_H_*/