|
@@ -17,9 +17,10 @@ class Sox(Base):
|
|
cmd = ['play', '-v', str(self.volume), str(self.src)]
|
|
cmd = ['play', '-v', str(self.volume), str(self.src)]
|
|
self.logger.debug('Executing %s', ' '.join(cmd))
|
|
self.logger.debug('Executing %s', ' '.join(cmd))
|
|
|
|
|
|
- self.proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
|
|
- #print(cmd)
|
|
|
|
- #return
|
|
|
|
|
|
+ #self.proc = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
|
|
|
+ print(cmd)
|
|
|
|
+ return
|
|
|
|
+ self.proc = subprocess.Popen(cmd)
|
|
self.playing = True
|
|
self.playing = True
|
|
self.proc.wait()
|
|
self.proc.wait()
|
|
self.playing = False
|
|
self.playing = False
|