Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Config.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2008-12-19 21:00:13 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2008-12-19 23:50:58 (GMT)
commit757076c22902ccce95717e8d4fcc38e158d2f079 (patch)
tree7343f40190e8a62d2af31802905ad611c640074a /common/Config.py
parent1e4c788150ed45dfb9a63448d7edb3b8113aaa5b (diff)
add FEATURES_* tags to Config.py
Diffstat (limited to 'common/Config.py')
-rw-r--r--common/Config.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/common/Config.py b/common/Config.py
index fee725c..4fdb2dd 100644
--- a/common/Config.py
+++ b/common/Config.py
@@ -6,10 +6,10 @@ import logging
#QUICKLOAD = os.path.isfile("QUICKLOAD") # skip loading inessential comenents to speed things up
-if os.path.exists('/ofw'):
- XO = True
-else:
- XO = None
+FEATURES_OGG = True
+FEATURES_MIC = None
+FEATURES_LAB = None
+FEATURES_NEWSOUNDS = None
if os.path.isfile("DEBUG"):
f = open("DEBUG")
@@ -30,7 +30,7 @@ TMP_DIR = os.path.join(get_activity_root(), 'tmp')
logging.debug('INFO: loaded TAMTAM_ROOT=%s' % TAM_TAM_ROOT)
-if XO:
+if os.path.exists('/ofw'): # XO
DATA_DIR = os.path.join(get_activity_root(), 'data')
SNDS_INFO_DIR = os.path.join(get_activity_root(), 'data', 'snds_info')
FILES_DIR = os.path.join(TAM_TAM_ROOT, "..", "TamTamEdit.activity", "common", "Resources")
@@ -62,8 +62,6 @@ PLUGIN_NPERIODS = 2
## SOUNDS
##############
-MIC = False
-
ARECORD = "arecord " + os.getenv("TAMTAM_ARECORD",
"-f S16_LE -t wav -r 16000 -c2 -D hw:0,0")
@@ -75,7 +73,10 @@ INST_TIED = 5001
INST_SIMP = 5011
INST_PERC = 5021
-CATEGORIES = ['all','animals','concret','keyboard','people','percussions','strings','winds', 'mysounds']
+CATEGORIES = ['all','animals','concret','keyboard','people','percussions','strings','winds']
+
+if FEATURES_MIC or FEATURES_LAB:
+ CATEGORIES.append('mysounds')
#CSOUND COMMANDS
CSOUND_LOAD_INSTRUMENT = 'f%d 0 0 -1 "%s" 0 0 0'