forked from len0rd/rockbox
Volume adjustment in LISTS ignored AUDIOHW_SETTING values
AUDIOHW_SETTING() defines number of decimals and step size. This is taken into account in sound menu but ignored in lists (had been recently fixed in WPS). This was not a problem so far since all drivers used 0 decimal places and step size equal 1. Change-Id: I8807d5b6f2f3d412a2bc5769905bd776553ece0b
This commit is contained in:
parent
f1bfbb52f1
commit
44023eb430
1 changed files with 4 additions and 3 deletions
|
|
@ -682,10 +682,11 @@ bool gui_synclist_do_button(struct gui_synclist * lists,
|
|||
|
||||
#ifdef HAVE_VOLUME_IN_LIST
|
||||
case ACTION_LIST_VOLUP:
|
||||
global_settings.volume += 2;
|
||||
/* up two because the falthrough brings it down one */
|
||||
global_settings.volume += sound_steps(SOUND_VOLUME);
|
||||
setvol();
|
||||
return true;
|
||||
case ACTION_LIST_VOLDOWN:
|
||||
global_settings.volume--;
|
||||
global_settings.volume -= sound_steps(SOUND_VOLUME);
|
||||
setvol();
|
||||
return true;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue