Module Name: src
Committed By: nia
Date: Fri May 7 19:37:03 UTC 2021
Modified Files:
src/usr.bin/aiomixer: draw.c
Log Message:
aiomixer: display the unit type for value controls
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/aiomixer/draw.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/aiomixer/draw.c
diff -u src/usr.bin/aiomixer/draw.c:1.2 src/usr.bin/aiomixer/draw.c:1.3
--- src/usr.bin/aiomixer/draw.c:1.2 Fri May 7 17:47:30 2021
+++ src/usr.bin/aiomixer/draw.c Fri May 7 19:37:03 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: draw.c,v 1.2 2021/05/07 17:47:30 nia Exp $ */
+/* $NetBSD: draw.c,v 1.3 2021/05/07 19:37:03 nia Exp $ */
/*-
* Copyright (c) 2021 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -93,7 +93,11 @@ draw_control(struct aiomixer *aio,
wclear(control->widgetpad);
if (selected)
wattron(control->widgetpad, A_STANDOUT);
- wprintw(control->widgetpad, "%s\n", control->info.label.name);
+ if (value.type == AUDIO_MIXER_VALUE)
+ wprintw(control->widgetpad, "%s (%s)\n",
+ control->info.label.name, control->info.un.v.units.name);
+ else
+ wprintw(control->widgetpad, "%s\n", control->info.label.name);
if (selected)
wattroff(control->widgetpad, A_STANDOUT);