aboutsummaryrefslogtreecommitdiffstats
path: root/audiomixer.py
diff options
context:
space:
mode:
Diffstat (limited to 'audiomixer.py')
-rw-r--r--audiomixer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/audiomixer.py b/audiomixer.py
index 3d61c10..e594471 100644
--- a/audiomixer.py
+++ b/audiomixer.py
@@ -28,11 +28,11 @@ class AudioMixerService(AGLBaseService):
async def list_controls(self):
return await self.request('list_controls')
- async def volume(self, value=None):
+ async def volume(self, control='Master', value=None):
if value is not None:
- return await self.request('volume', {'control': 'Master', 'value': value})
+ return await self.request('volume', {'control': control, 'value': value})
else:
- return await self.request('volume', {'control': 'Master'})
+ return await self.request('volume', {'control': control})
async def mute(self, value=None):
return await self.request('mute', {'control': 'Master', 'value': value})