Fixed a bug in pulseaudio when changing source/sink, e.g. (dis)connecting bluetooth headset.
This commit is contained in:
parent
e2aa039276
commit
8e85eaa018
1 changed files with 3 additions and 0 deletions
|
@ -146,9 +146,12 @@ class Module(core.module.Module):
|
|||
m = re.search(r"mono:.*\s*\/\s*(\d+)%", line)
|
||||
if m:
|
||||
self._mono = m.group(1)
|
||||
self._left = 0
|
||||
self._right = 0
|
||||
else:
|
||||
m = re.search(r"left:.*\s*\/\s*(\d+)%.*right:.*\s*\/\s*(\d+)%", line)
|
||||
if m:
|
||||
self._mono = 0
|
||||
self._left = m.group(1)
|
||||
self._right = m.group(2)
|
||||
|
||||
|
|
Loading…
Reference in a new issue