aboutsummaryrefslogtreecommitdiff
path: root/src/pulseaudio-mgr.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-02-04 19:55:20 +0000
committerConor Curran <conor.curran@canonical.com>2011-02-04 19:55:20 +0000
commit381d827c0da72499f6092c7bb8cb6238ba0d2746 (patch)
treee01af7ffa0e1876259f4731d47c34b99db5849ab /src/pulseaudio-mgr.c
parent6bfc46de9234f0ef39d90b934fb406eebec4c59c (diff)
downloadayatana-indicator-sound-381d827c0da72499f6092c7bb8cb6238ba0d2746.tar.gz
ayatana-indicator-sound-381d827c0da72499f6092c7bb8cb6238ba0d2746.tar.bz2
ayatana-indicator-sound-381d827c0da72499f6092c7bb8cb6238ba0d2746.zip
hook back volume and mute setting and test
Diffstat (limited to 'src/pulseaudio-mgr.c')
-rw-r--r--src/pulseaudio-mgr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pulseaudio-mgr.c b/src/pulseaudio-mgr.c
index cb786de..c8439e8 100644
--- a/src/pulseaudio-mgr.c
+++ b/src/pulseaudio-mgr.c
@@ -55,13 +55,11 @@ static void pm_sink_input_info_callback (pa_context *c,
const pa_sink_input_info *info,
int eol,
void *userdata);
-
static void pm_update_active_sink (pa_context *c,
const pa_sink_info *info,
int eol,
void *userdata);
-
static gboolean reconnect_to_pulse (gpointer user_data);
static gint connection_attempts = 0;
@@ -370,8 +368,8 @@ pm_update_active_sink (pa_context *c,
}
pa_volume_t vol = pa_cvolume_max (&info->volume);
gdouble volume_percent = ((gdouble) vol * 100) / PA_VOLUME_NORM;
- active_sink_update_volume (ACTIVE_SINK(userdata), volume_percent);
- active_sink_update_mute (ACTIVE_SINK(userdata), info->mute);
+ active_sink_volume_update (ACTIVE_SINK(userdata), volume_percent);
+ active_sink_mute_update (ACTIVE_SINK(userdata), info->mute);
}
}