aboutsummaryrefslogtreecommitdiffstats
path: root/pulse.cc
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-01-02 15:33:28 -0500
committerDave Reisner <dreisner@archlinux.org>2013-01-02 15:33:28 -0500
commitf44dd5995a8da0e9f9e1d6372d9fc879b944b768 (patch)
tree5a054cec355d2f125aa5981e9527ccc7bd47ffef /pulse.cc
parent4292241040661f4b9b042b24d2f0773de0eb1366 (diff)
downloadmirror-ponymix-f44dd5995a8da0e9f9e1d6372d9fc879b944b768.tar.gz
mirror-ponymix-f44dd5995a8da0e9f9e1d6372d9fc879b944b768.tar.bz2
mirror-ponymix-f44dd5995a8da0e9f9e1d6372d9fc879b944b768.zip
always defined behaviors for devices
Diffstat (limited to 'pulse.cc')
-rw-r--r--pulse.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/pulse.cc b/pulse.cc
index b765d64..7fc1bd1 100644
--- a/pulse.cc
+++ b/pulse.cc
@@ -553,6 +553,8 @@ Device::Device(const pa_sink_info* info) :
ops_.SetVolume = pa_context_set_sink_volume_by_index;
ops_.Mute = pa_context_set_sink_mute_by_index;
+ ops_.Kill = nullptr;
+ ops_.Move = nullptr;
ops_.SetDefault = pa_context_set_default_sink;
}
@@ -569,6 +571,8 @@ Device::Device(const pa_source_info* info) :
ops_.SetVolume = pa_context_set_source_volume_by_index;
ops_.Mute = pa_context_set_source_mute_by_index;
+ ops_.Kill = nullptr;
+ ops_.Move = nullptr;
ops_.SetDefault = pa_context_set_default_source;
}
@@ -590,6 +594,7 @@ Device::Device(const pa_sink_input_info* info) :
ops_.Mute = pa_context_set_sink_input_mute;
ops_.Kill = pa_context_kill_sink_input;
ops_.Move = pa_context_move_sink_input_by_index;
+ ops_.SetDefault = nullptr;
}
Device::Device(const pa_source_output_info* info) :
@@ -610,6 +615,7 @@ Device::Device(const pa_source_output_info* info) :
ops_.Mute = pa_context_set_source_output_mute;
ops_.Kill = pa_context_kill_source_output;
ops_.Move = pa_context_move_source_output_by_index;
+ ops_.SetDefault = nullptr;
}
void Device::update_volume(const pa_cvolume& newvol) {