Hi,
Relatively new user of both Python and wxPython, and am enjoying both so far.
Currently am going insane because I can't find out an OS-portable method of
playing a sound file. Have searched through both the Python and wxWindows
docs to no avail (well, the python docs do mention an UNDOCUMENTED audiodev
module, and looking at the audiodev.py source gives a good clue as to why
it's undocumented) [0]. There's also the Windows-specific winsound module,
but of course that's not portable.
I'm justifying my posting of this question on an obviously GUI-specific
Python list because... um.... surely most gui programmers feel the need to
make noises occasionally :)? <click button> Beep! [1]
Well all right, it's also because there appear to be quite a few
knowledgeable people on this list that might know an answer.
I can see that you could use a platform check, using the winsound module on
Windows and spawning a shell to run 'play' or suchlike on Unix... but
that'd be _such_ a kludge. *sigh*
Any suggestions/pointers/recommendations would be greatly appreciated.
Pete.
[0] It doesn't appear to make any sense. Well all right, not to me anyway.
[1] If you _really_ feel the need to flame me for this being OT, do it in
private email, not to the list. Thank you.
···
--
http://cygnus.uwa.edu.au/~pete/
--
BEDEVERE: Wait. Wait ... tell me, what also floats on water?
ALL: Bread? No, no, no. Apples .... gravy ... very small rocks ...
ARTHUR: A duck.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users