aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pulsemix.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/pulsemix.c b/pulsemix.c
index 13481d5..2a3fabc 100644
--- a/pulsemix.c
+++ b/pulsemix.c
@@ -288,8 +288,14 @@ static int set_balance(struct pulseaudio_t *pulse, struct io_t *dev, long v)
static int set_mute(struct pulseaudio_t *pulse, struct io_t *dev, int mute)
{
- pa_operation* op = pulse->head->fn_mute(pulse->cxt, dev->idx, mute,
- success_cb, pulse);
+ pa_operation* op;
+
+ /* new effective volume */
+ printf("%d\n", mute ? 0 : dev->volume_percent);
+
+ op = pulse->head->fn_mute(pulse->cxt, dev->idx, mute,
+ success_cb, pulse);
+
pulse_async_wait(pulse, op);
if (!pulse->success) {