Sounds #327

Merged
Atheros1 merged 6 commits from master into master 2013-07-23 21:37:45 +02:00
Showing only changes of commit a7a2de1d24 - Show all commits

View File

@ -937,9 +937,13 @@ class MyForm(QtGui.QMainWindow):
if 'linux' in sys.platform: if 'linux' in sys.platform:
# Note: QSound was a nice idea but it didn't work # Note: QSound was a nice idea but it didn't work
if '.mp3' in soundFilename: if '.mp3' in soundFilename:
subprocess.call(["gst123", soundFilename]) subprocess.call(["gst123", soundFilename],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
else: else:
subprocess.call(["aplay", soundFilename]) subprocess.call(["aplay", soundFilename],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
elif sys.platform[0:3] == 'win': elif sys.platform[0:3] == 'win':
# use winsound on Windows # use winsound on Windows
import winsound import winsound