mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-30 10:38:36 +00:00
convert mixer bars to double
This commit is contained in:
parent
1160e74d35
commit
3764c883c7
@ -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));
|
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));
|
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));
|
return mixer_to_255(obj->data.i, mixer_get_right(obj->data.i));
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@ uint8_t mixerr_percentage(struct text_object *obj);
|
|||||||
int check_mixer_muted(struct text_object *);
|
int check_mixer_muted(struct text_object *);
|
||||||
|
|
||||||
void scan_mixer_bar(struct text_object *, const char *);
|
void scan_mixer_bar(struct text_object *, const char *);
|
||||||
uint8_t mixer_barval(struct text_object *);
|
double mixer_barval(struct text_object *);
|
||||||
uint8_t mixerl_barval(struct text_object *);
|
double mixerl_barval(struct text_object *);
|
||||||
uint8_t mixerr_barval(struct text_object *);
|
double mixerr_barval(struct text_object *);
|
||||||
|
|
||||||
#endif /*MIXER_H_*/
|
#endif /*MIXER_H_*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user