diff --git a/src/mixer.c b/src/mixer.c index 81a4ef23..0eeb9cd5 100644 --- a/src/mixer.c +++ b/src/mixer.c @@ -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)); } diff --git a/src/mixer.h b/src/mixer.h index 34dc1bdb..ee730bc0 100644 --- a/src/mixer.h +++ b/src/mixer.h @@ -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_*/