diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-02-04 19:55:20 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-02-04 19:55:20 +0000 |
commit | 381d827c0da72499f6092c7bb8cb6238ba0d2746 (patch) | |
tree | e01af7ffa0e1876259f4731d47c34b99db5849ab /src/pulseaudio-mgr.c | |
parent | 6bfc46de9234f0ef39d90b934fb406eebec4c59c (diff) | |
download | ayatana-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.c | 6 |
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); } } |