Update generic.py

This commit is contained in:
chrys87 2016-09-16 13:34:12 +02:00 committed by GitHub
parent b4d0e4d6c5
commit addcab8889

View File

@ -11,6 +11,10 @@ class driver():
def initialize(self, environment):
self.soundFileCommand = environment['runtime']['settingsManager'].getSetting(environment,'sound', 'genericPlayFileCommand')
self.frequenceCommand = environment['runtime']['settingsManager'].getSetting(environment,'sound', 'genericFrequencyCommand')
if self.soundFileCommand == '':
self.soundFileCommand = 'play -q -v fenrirVolume fenrirSoundFile'
if self.frequenceCommand == '':
self.frequenceCommand = '=play -q -v fenrirVolume -n -c1 synth fenrirDuration sine fenrirFrequence'
return environment
def shutdown(self, environment):
return environment