aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Gomizelj <simongmzlj@gmail.com>2012-08-11 01:49:28 -0400
committerSimon Gomizelj <simongmzlj@gmail.com>2012-08-11 03:29:54 -0400
commit1992d58b5005cb9edbfda01a691119ba2db12d2c (patch)
tree7df9f281d8e42f53110b05188aeb6935c1bc97de
parentef12a05e776bca757142ebe5cc51c94b3752e47f (diff)
downloadmirror-ponymix-1992d58b5005cb9edbfda01a691119ba2db12d2c.tar.gz
mirror-ponymix-1992d58b5005cb9edbfda01a691119ba2db12d2c.tar.bz2
mirror-ponymix-1992d58b5005cb9edbfda01a691119ba2db12d2c.zip
add [Muted] to muted devices when printing
-rw-r--r--pulsemix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pulsemix.c b/pulsemix.c
index ed63cbd..2046f48 100644
--- a/pulsemix.c
+++ b/pulsemix.c
@@ -287,8 +287,9 @@ static int mute(struct pulseaudio_t *pulse, struct io_t *dev)
static void print(struct io_t *dev)
{
- printf("%s %2d: %s\n %s\n Avg. Volume: %d%%\n", dev->pp_name,
- dev->idx, dev->name, dev->desc, dev->volume_percent);
+ printf("%s %2d: %s\n %s\n Avg. Volume: %d%% %s\n", dev->pp_name,
+ dev->idx, dev->name, dev->desc, dev->volume_percent,
+ dev->mute ? "[Muted]" : "");
}
static void print_all(struct pulseaudio_t *pulse)