Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

touchscreen: Allow volume bars to be used in the .sbs

Move the volume bar input handling to skin_touchsupport.c so
volume bars can be used in the .sbs as well as the .wps skin.

Change-Id: I018fa1c84f93b64d676b68e3bea63ddb9141e492

+13 -11
+13
apps/gui/skin_engine/skin_touchsupport.c
··· 203 203 action = ACTION_TOUCH_SCROLLBAR_END; 204 204 break; 205 205 206 + case ACTION_TOUCH_VOLUME: 207 + { 208 + const int min_vol = sound_min(SOUND_VOLUME); 209 + const int max_vol = sound_max(SOUND_VOLUME); 210 + const int step_vol = sound_steps(SOUND_VOLUME); 211 + 212 + global_status.volume = from_normalized_volume(*edge_offset, min_vol, max_vol, 1000); 213 + global_status.volume -= (global_status.volume % step_vol); 214 + setvol(); 215 + 216 + action = ACTION_TOUCHSCREEN; 217 + } break; 218 + 206 219 case ACTION_TOUCH_SOFTLOCK: 207 220 data->touchscreen_locked = !data->touchscreen_locked; 208 221 action = ACTION_NONE;
-11
apps/gui/wps.c
··· 205 205 audio_pre_ff_rewind(); 206 206 audio_ff_rewind(gstate->id3->elapsed); 207 207 return ACTION_TOUCHSCREEN; 208 - case ACTION_TOUCH_VOLUME: 209 - { 210 - const int min_vol = sound_min(SOUND_VOLUME); 211 - const int max_vol = sound_max(SOUND_VOLUME); 212 - const int step_vol = sound_steps(SOUND_VOLUME); 213 - 214 - global_status.volume = from_normalized_volume(offset, min_vol, max_vol, 1000); 215 - global_status.volume -= (global_status.volume % step_vol); 216 - setvol(); 217 - } 218 - return ACTION_TOUCHSCREEN; 219 208 } 220 209 return button; 221 210 }