From b27dfdfe870e90543d7f7dfd8bd69dcd3b71a6d2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 25 Mar 2017 13:14:23 +0100 Subject: Fix alsa MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/alsa.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/alsa.py b/src/plugins/alsa.py index f624672..b5365c7 100644 --- a/src/plugins/alsa.py +++ b/src/plugins/alsa.py @@ -59,10 +59,10 @@ class ALSA: card = -1 else: card = alsaaudio.cards().index(card) - self.card = card + self.cardindex = card self.mixername = mixername - self.mixer = alsaaudio.Mixer(self.mixername, 0, self.card) - self.cardname = mixer.cardname + self.mixer = alsaaudio.Mixer(self.mixername, 0, self.cardindex) + self.cardname = self.mixer.cardname def get_volume(self): -- cgit v1.2.3-70-g09d2