summaryrefslogtreecommitdiffstats
path: root/ServerInfo.cc
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-15 11:26:05 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-15 11:26:05 +0000
commitf8b436993e3ea7059984538cd65d50bd50671fe6 (patch)
tree671775ab2c37fd06c5590a54e2220d5d1a2cf01b /ServerInfo.cc
parente34209e5df13b4f3dd228af857cf0d303b21db48 (diff)
Implement volume changing
git-svn-id: file:///home/lennart/svn/public/paman/trunk@7 cdefa82f-4ce1-0310-97f5-ab6066f37c3c
Diffstat (limited to 'ServerInfo.cc')
-rw-r--r--ServerInfo.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ServerInfo.cc b/ServerInfo.cc
index 7866683..fc7fe4e 100644
--- a/ServerInfo.cc
+++ b/ServerInfo.cc
@@ -392,3 +392,7 @@ void ServerInfoManager::removeModuleInfo(uint32_t index) {
delete i;
}
}
+
+void ServerInfoManager::setSinkVolume(uint32_t index, uint32_t volume) {
+ pa_operation_unref(pa_context_set_sink_volume_by_index(&context, index, volume, NULL, NULL));
+}