Update genericDriver.py

This commit is contained in:
chrys87 2018-04-24 13:12:41 +02:00 committed by GitHub
parent 1c9d2ca1b7
commit 863938506a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ class driver(soundDriver):
word = word.replace('fenrirFreqDuration', str(duration)) word = word.replace('fenrirFreqDuration', str(duration))
word = word.replace('fenrirFrequence', str(frequence)) word = word.replace('fenrirFrequence', str(frequence))
popenFrequenceCommand[idx] = word popenFrequenceCommand[idx] = word
self.proc = subprocess.Popen(popenFrequenceCommand, shell=False) self.proc = subprocess.Popen(popenFrequenceCommand, stdin=None, stdout=None, stderr=None, shell=False)
self.soundType = 'frequence' self.soundType = 'frequence'
def playSoundFile(self, filePath, interrupt = True): def playSoundFile(self, filePath, interrupt = True):
if not self._initialized: if not self._initialized: