summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-20 13:20:34 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-20 13:20:34 +0200
commit9ab5ab69286a6d06979d8a6e4395512b322eeafb (patch)
treefcc74983a5bd7aa5d1efff5eaf96a4d122c8090d
parent93e0d7027a7672be0cfb4ac7ea2b09f921f31a05 (diff)
downloadnncmpp-9ab5ab69286a6d06979d8a6e4395512b322eeafb.tar.gz
nncmpp-9ab5ab69286a6d06979d8a6e4395512b322eeafb.tar.xz
nncmpp-9ab5ab69286a6d06979d8a6e4395512b322eeafb.zip
Change volume in finer steps
-rw-r--r--NEWS2
-rw-r--r--nncmpp.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 2744e51..3b595a4 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,8 @@ Unreleased
* 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)
diff --git a/nncmpp.c b/nncmpp.c
index db30cd2..0d9578a 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -2619,12 +2619,12 @@ app_process_action (enum action action)
case ACTION_MPD_CONSUME: return app_mpd_toggle ("consume");
case ACTION_MPD_UPDATE_DB: return MPD_SIMPLE ("update");
- case ACTION_MPD_VOLUME_UP: return app_setvol (g.volume + 10);
- case ACTION_MPD_VOLUME_DOWN: 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 - 5);
#ifdef WITH_PULSE
- case ACTION_PULSE_VOLUME_UP: return pulse_volume_set (&g.pulse, +10);
- case ACTION_PULSE_VOLUME_DOWN: 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, -5);
case ACTION_PULSE_MUTE: return pulse_volume_mute (&g.pulse);
#endif // WITH_PULSE