-#! /usr/local/python
+#! /usr/local/bin/python
# XXX This only works on SGIs running IRIX 4.0 or higher
# Pathnames
DEF_DB = '/usr/local/sounds' # Default directory of sounds
-SOX = '/usr/local/sox' # Sound format conversion program
+SOX = '/usr/local/bin/sox' # Sound format conversion program
SFPLAY = '/usr/sbin/sfplay' # Sound playing program
def playfile(filename):
killchild()
- tuple = sndhdr.what(filename)
+ try:
+ tuple = sndhdr.what(filename)
+ except IOError, msg:
+ print 'Can\'t open', filename, msg
+ stdwin.fleep()
+ return
raw = 0
if tuple:
mode, rate = tuple[:2]