Skip to content
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
10 changes: 8 additions & 2 deletions pulsemixer
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ from unicodedata import east_asian_width
# v bindings

try:
DLL = CDLL("libpulse.so.0")
if sys.platform == "darwin":
DLL = CDLL("libpulse.dylib")
else:
DLL = CDLL("libpulse.so.0")
except Exception as e:
sys.exit(e)

Expand Down Expand Up @@ -937,7 +940,10 @@ class Bar():
self.name = pa
return
if type(pa) in (PulseSinkInfo, PulseSourceInfo, PulseCard):
self.fullname = pa.description.decode()
if pa.description:
self.fullname = pa.description.decode()
else:
self.fullname = pa.name.decode()
else:
self.fullname = pa.client.name.decode()
self.name = re.sub(r'^ALSA plug-in \[|\]$', '', self.fullname.replace('|', ' '))
Expand Down