Merge pull request #905 from br0xpl/main
Pulseaudio bug when chaning sink/source (between mono and stereo devices).
This commit is contained in:
commit
b5535fcdc1
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