summaryrefslogtreecommitdiff
path: root/voctocore/lib/audiomix.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-05-15 10:40:17 +0200
committerMaZderMind <github@mazdermind.de>2015-05-15 10:40:17 +0200
commit18af1394a8b732d94b48b8f13e78cfcae3e45a6e (patch)
tree277a4ed47ce1823742da57a9999b75dd1a265f22 /voctocore/lib/audiomix.py
parent389f87470bc988a2e4c26b4ce6e23a313aafbaf0 (diff)
Move Class-Level variables to the Instances
I should really learn python…
Diffstat (limited to 'voctocore/lib/audiomix.py')
-rw-r--r--voctocore/lib/audiomix.py12
1 files changed, 3 insertions, 9 deletions
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))