updated to use ffplay instead of aplay for better cross-platform compatibility

This commit is contained in:
DJSundog 2017-12-28 13:31:36 -08:00
parent 012a9e03eb
commit 9346e3a399

View file

@ -25,7 +25,8 @@ class Queue(object):
def run_thread(filename, cb_complete): def run_thread(filename, cb_complete):
print('==> Playing', filename) print('==> Playing', filename)
run(['afplay', filename]) cmd = 'ffplay -v 0 -nostats -hide_banner -autoexit -nodisp'.split()
run(['ffplay', '-v', '0', '-nostats', '-hide_banner', '-autoexit', '-nodisp', filename])
cb_complete() cb_complete()
thread = Thread(target=run_thread, args=(filename, cb_complete)) thread = Thread(target=run_thread, args=(filename, cb_complete))