summaryrefslogtreecommitdiffstats
path: root/audiomixer.py
diff options
context:
space:
mode:
authorEdi Feschiyan <edi.feschiyan@konsulko.com>2020-06-09 09:21:31 +0300
committerEdi Feschiyan <edi.feschiyan@konsulko.com>2020-06-09 09:30:31 +0300
commite2bb2d3ff3f909b9417040de4dd8ea876777a6ee (patch)
treee0ca7d0fd4e0e5d05f40f76cd7b3db0d04d23eac /audiomixer.py
parent67f7da94a293ac332fab73db50a2467913d10ae9 (diff)
Adding argparser to bluetooth
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})