From 18af1394a8b732d94b48b8f13e78cfcae3e45a6e Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 15 May 2015 10:40:17 +0200 Subject: Move Class-Level variables to the Instances I should really learn python… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- voctocore/lib/audiomix.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'voctocore/lib/audiomix.py') diff --git a/voctocore/lib/audiomix.py b/voctocore/lib/audiomix.py index 1be32d4..857600f 100644 --- a/voctocore/lib/audiomix.py +++ b/voctocore/lib/audiomix.py @@ -6,18 +6,12 @@ from enum import Enum from lib.config import Config class AudioMix(object): - log = logging.getLogger('AudioMix') - - mixingPipeline = None - - caps = None - names = [] + def __init__(self): + self.log = logging.getLogger('AudioMix') - selectedSource = 0 + self.selectedSource = 0 - def __init__(self): self.caps = Config.get('mix', 'audiocaps') - self.names = Config.getlist('mix', 'sources') self.log.info('Configuring Mixer for %u Sources', len(self.names)) -- cgit v1.2.3