From f8b436993e3ea7059984538cd65d50bd50671fe6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 15 Aug 2004 11:26:05 +0000 Subject: Implement volume changing git-svn-id: file:///home/lennart/svn/public/paman/trunk@7 cdefa82f-4ce1-0310-97f5-ab6066f37c3c --- ServerInfo.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ServerInfo.cc') 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)); +} -- cgit