From 7b1dd6b60a1b39468be02bb7a1e71f4be354ce0f Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 8 Dec 2023 20:30:59 -0500 Subject: RFC: Extend skin engine to handle EQ settings EQ settings are actually an array of 3 ints. I added a skin parameter token that allows specifying which array element to use. So instead of this now-incorrect syntax: %St(0,0,-,-,image,eqbar.bmp,vertical,setting,eq band 1 gain) You would use: %St(0,0,-,-,image,eqbar.bmp,vertical,soffset,2,setting,eq peak filter 1) (the 'gain' is the third element in the eq setting array, thus soffset 2) Change-Id: Ibda712ab87759efb45420566c967742bcefb513b --- apps/gui/option_select.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/gui/option_select.h') diff --git a/apps/gui/option_select.h b/apps/gui/option_select.h index eabe5825e7..4053603b63 100644 --- a/apps/gui/option_select.h +++ b/apps/gui/option_select.h @@ -38,7 +38,7 @@ bool option_screen(const struct settings_list *setting, void option_select_next_val(const struct settings_list *setting, bool previous, bool apply); #endif -const char *option_get_valuestring(const struct settings_list *setting, +const char *option_get_valuestring(const struct settings_list *setting, char *buffer, int buf_len, intptr_t temp_var); void option_talk_value(const struct settings_list *setting, int value, bool enqueue); @@ -46,9 +46,9 @@ void option_talk_value(const struct settings_list *setting, int value, bool enqu /* only use this for int and bool settings */ int option_value_as_int(const struct settings_list *setting); -int get_setting_info_for_bar(const struct settings_list *setting, int *count, int *val); +int get_setting_info_for_bar(const struct settings_list *setting, int offset, int *count, int *val); #ifdef HAVE_TOUCHSCREEN -void update_setting_value_from_touch(const struct settings_list *setting, int selection); +void update_setting_value_from_touch(const struct settings_list *setting, int offset, int selection); #endif #endif /* _GUI_OPTION_SELECT_H_ */ -- cgit v1.2.3