aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2015-12-19 15:07:31 -0600
committercharles kerr <charlesk@canonical.com>2015-12-19 15:07:31 -0600
commitaee4659081bbca43cb3e7d11bc3263e530876a86 (patch)
tree22bf6f30d99c10900ac2e9f20e295a6b78d71bbb /src
parentf89a1590b139e87100e7315cfa8a44116b445332 (diff)
downloadayatana-indicator-sound-aee4659081bbca43cb3e7d11bc3263e530876a86.tar.gz
ayatana-indicator-sound-aee4659081bbca43cb3e7d11bc3263e530876a86.tar.bz2
ayatana-indicator-sound-aee4659081bbca43cb3e7d11bc3263e530876a86.zip
get the build working again
Diffstat (limited to 'src')
-rw-r--r--src/volume-warning.vala11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/volume-warning.vala b/src/volume-warning.vala
index e60d682..73a8ade 100644
--- a/src/volume-warning.vala
+++ b/src/volume-warning.vala
@@ -23,10 +23,17 @@ 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);
+extern unowned PulseAudio.CVolume? vol_set2 (PulseAudio.CVolume? cv, uint channels, PulseAudio.Volume v);
public class VolumeWarning : VolumeControl
{
+ // FIXME: this is temporarily necessary while bootstrapping this
+ // code because VolumeWarning is still subclassed from VolumeControl,
+ // but TBH we don't need any concept of mute here.
+ public override void set_mute (bool mute) {
+ warning("set_mute not supported for VolumeWarning");
+ }
+
/* this is static to ensure it being freed after @context (loop does not have ref counting) */
private static PulseAudio.GLibMainLoop loop;
@@ -613,7 +620,7 @@ public class VolumeWarning : 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 = vol_set2 (cvol, 1, double_to_volume (_mic_volume));
c.set_source_volume_by_name (i.default_source_name, cvol, set_mic_volume_success_cb);
}
}