aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control-pulse.vala
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2015-12-29 16:29:27 -0600
committercharles kerr <charlesk@canonical.com>2015-12-29 16:29:27 -0600
commit97a06752f6171e811c85faba05f3dceab45d38e3 (patch)
treea48bab5b8c405d2e3511baa8fe44c9608c79b8d8 /src/volume-control-pulse.vala
parent7a64a24d4d9a8749b4cccfc6e50d8dc2ce94dc02 (diff)
downloadayatana-indicator-sound-97a06752f6171e811c85faba05f3dceab45d38e3.tar.gz
ayatana-indicator-sound-97a06752f6171e811c85faba05f3dceab45d38e3.tar.bz2
ayatana-indicator-sound-97a06752f6171e811c85faba05f3dceab45d38e3.zip
in vol-control-pulse, remove redundant vapi scaffolding
Diffstat (limited to 'src/volume-control-pulse.vala')
-rw-r--r--src/volume-control-pulse.vala5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala
index 8b365aa..d8b9520 100644
--- a/src/volume-control-pulse.vala
+++ b/src/volume-control-pulse.vala
@@ -22,9 +22,6 @@ using PulseAudio;
using Notify;
using Gee;
-[CCode(cname="pa_cvolume_set", cheader_filename = "pulse/volume.h")]
-extern unowned PulseAudio.CVolume? vol_set (PulseAudio.CVolume? cv, uint channels, PulseAudio.Volume v);
-
[DBus (name="com.canonical.UnityGreeter.List")]
interface GreeterListInterface : Object
{
@@ -645,7 +642,7 @@ public class VolumeControlPulse : VolumeControl
void set_mic_volume_get_server_info_cb (PulseAudio.Context c, PulseAudio.ServerInfo? i) {
if (i != null) {
unowned CVolume cvol = CVolume ();
- cvol = vol_set (cvol, 1, double_to_volume (_mic_volume));
+ cvol.set (1, double_to_volume (_mic_volume));
c.set_source_volume_by_name (i.default_source_name, cvol, set_mic_volume_success_cb);
}
}