diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-03-14 12:33:49 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-03-14 12:33:49 -0400 |
commit | 92a0ab8789c622afecc47f3b399eda8abf26ee9e (patch) | |
tree | 065304be27d14d255aceed1cb0c53195fa608683 /firmware/sound.c | |
parent | 714f7a21da43a9e1f3d3467c54df7616da4c680c (diff) | |
download | rockbox-92a0ab8789c622afecc47f3b399eda8abf26ee9e.tar.gz rockbox-92a0ab8789c622afecc47f3b399eda8abf26ee9e.zip |
sound: add sound_numdecimals() to round out the sound setting query API
A necessary prerequisite for fixing FS#13272
Change-Id: Ice288af39a4f08bea376f920d855932bdac69a52
Diffstat (limited to 'firmware/sound.c')
-rw-r--r-- | firmware/sound.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/sound.c b/firmware/sound.c index acf198da2e..71bdc25003 100644 --- a/firmware/sound.c +++ b/firmware/sound.c | |||
@@ -98,6 +98,11 @@ int sound_default(int setting) | |||
98 | return get_settings_info(setting)->defaultval; | 98 | return get_settings_info(setting)->defaultval; |
99 | } | 99 | } |
100 | 100 | ||
101 | int sound_num_decimals(int setting) | ||
102 | { | ||
103 | return get_settings_info(setting)->numdecimals; | ||
104 | } | ||
105 | |||
101 | sound_set_type * sound_get_fn(int setting) | 106 | sound_set_type * sound_get_fn(int setting) |
102 | { | 107 | { |
103 | return get_setting_entry(setting)->function; | 108 | return get_setting_entry(setting)->function; |