make sound nonblocking

This commit is contained in:
Chrys
2016-08-03 03:00:39 +02:00
parent 8a3ead822a
commit 4aee07b34c
2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,7 @@ class sound():
def playFrequence(self, frequence, duration, adjustVolume):
pass
def playSoundFile(self, filePath, interrupt = True):
subprocess.call("play -q " + filePath, shell=True)
self.proc = subprocess.Popen("play -q " + filePath, shell=True)
def cancel(self):
pass
def setCallback(self, callback):