Change volume in finer steps

This commit is contained in:
Přemysl Eric Janouch 2023-07-20 13:20:34 +02:00
parent 93e0d7027a
commit 9ab5ab6928
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 6 additions and 4 deletions

2
NEWS
View File

@ -19,6 +19,8 @@ Unreleased
* Changed volume adjustment bindings to use +/- keys * Changed volume adjustment bindings to use +/- keys
* Changed volume adjustment to go in steps of 5 rather than 10 %
2.0.0 (2022-09-03) 2.0.0 (2022-09-03)

View File

@ -2619,12 +2619,12 @@ app_process_action (enum action action)
case ACTION_MPD_CONSUME: return app_mpd_toggle ("consume"); case ACTION_MPD_CONSUME: return app_mpd_toggle ("consume");
case ACTION_MPD_UPDATE_DB: return MPD_SIMPLE ("update"); case ACTION_MPD_UPDATE_DB: return MPD_SIMPLE ("update");
case ACTION_MPD_VOLUME_UP: return app_setvol (g.volume + 10); case ACTION_MPD_VOLUME_UP: return app_setvol (g.volume + 5);
case ACTION_MPD_VOLUME_DOWN: return app_setvol (g.volume - 10); case ACTION_MPD_VOLUME_DOWN: return app_setvol (g.volume - 5);
#ifdef WITH_PULSE #ifdef WITH_PULSE
case ACTION_PULSE_VOLUME_UP: return pulse_volume_set (&g.pulse, +10); case ACTION_PULSE_VOLUME_UP: return pulse_volume_set (&g.pulse, +5);
case ACTION_PULSE_VOLUME_DOWN: return pulse_volume_set (&g.pulse, -10); case ACTION_PULSE_VOLUME_DOWN: return pulse_volume_set (&g.pulse, -5);
case ACTION_PULSE_MUTE: return pulse_volume_mute (&g.pulse); case ACTION_PULSE_MUTE: return pulse_volume_mute (&g.pulse);
#endif // WITH_PULSE #endif // WITH_PULSE