Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sinks/sources with more than eight channels #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pulsemixer
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ class PulseVolume(DebugMixin):

class Bar():
# should be in correct order
LEFT, RIGHT, RLEFT, RRIGHT, CENTER, SUB, SLEFT, SRIGHT, NONE = range(9)
NONE, LEFT, RIGHT, RLEFT, RRIGHT, CENTER, SUB, SLEFT, SRIGHT = range(-1, 8)

def __init__(self, pa):
if type(pa) is str:
Expand Down Expand Up @@ -1170,7 +1170,7 @@ class Screen():
if side is Bar.NONE:
self.info = str
return
side = 'All' if bar.locked else 'Mono' if bar.channels == 1 else self.SIDES[side]
side = 'All' if bar.locked else 'Mono' if bar.channels == 1 else self.SIDES[side] if len(self.SIDES) > side else 'AUX {}'.format(side - len(self.SIDES))
more = '↕' if bottom < self.n_lines and self.top_line_num > 0 else '↑' if self.top_line_num > 0 else '↓' if bottom < self.n_lines else ' '
name = '{}: {}'.format(bar.name, side)
if len(name) > self.cols - 8:
Expand Down