diff options
Diffstat (limited to 'common/Util/CSoundClient.py')
-rw-r--r-- | common/Util/CSoundClient.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/Util/CSoundClient.py b/common/Util/CSoundClient.py index b3729d8..b8919eb 100644 --- a/common/Util/CSoundClient.py +++ b/common/Util/CSoundClient.py @@ -101,7 +101,10 @@ class _CSoundClientPlugin: def load_instrument(self, inst): if not inst in loadedInstruments: - fileName = Config.SOUNDS_DIR + "/" + inst + if inst[0:3] == 'mic' or inst[0:3] == 'lab' or self.instrumentDB.instNamed[inst].category == 'mysounds': + fileName = Config.SNDS_DIR + '/' + inst + else: + fileName = Config.SOUNDS_DIR + "/" + inst instrumentId = Config.INSTRUMENT_TABLE_OFFSET + self.instrumentDB.instNamed[ inst ].instrumentId sc_inputMessage( Config.CSOUND_LOAD_INSTRUMENT % (instrumentId, fileName) ) loadedInstruments.append(inst) |