Richard - It works (in Python 2.6, mind you) on my 64-bit Win7 machine, but I suspect that that may be because of Microsoft's compatibility twiddling on the back end. I Googled, and there seem to be a number of reports of people having trouble with 64-bit Vista and winsound.Beep(). I suspect that allowing programs access to the system speaker is one of those things that MS decided to cut out in Vista, but then decided to bring back in 7.
Chris - if it were just a disconnected speaker, I don't think he'd get the runtime error... On Sat, Dec 19, 2009 at 2:02 AM, Chris Fuller <cfuller...@thinkingplanet.net > wrote: > > Something to keep in mind is that the audio output of your computer and the > system speaker are independent. Sometimes the BELL character (ACSII 0x07) > will sound the system speaker, spending on your OS, drivers, etc. > > The winsound docs say it's the speaker, which is connected to the > motherboard > with an odd four pin connector (with only two wires). It's normally only > used > during boot up, so it could have been left disconnected and not missed. > > Cheers > > On Saturday 19 December 2009, Richard D. Moores wrote: > > My laptop, a Toshiba Satellite running Python 3.1 and Vista 64-bit > > > > SP2, with the speakers on and otherwise working, won't give me a beep: > > >>> from winsound import Beep > > >>> Beep(500, 500) > > > > Traceback (most recent call last): > > File "<pyshell#1>", line 1, in <module> > > Beep(500, 500) > > RuntimeError: Failed to beep > > > > Please give me some hints as to what I can do about this. > > > > Thanks, > > > > Dick Moores > > _______________________________________________ > > Tutor maillist - Tutor@python.org > > To unsubscribe or change subscription options: > > http://mail.python.org/mailman/listinfo/tutor > > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > -- www.fsrtechnologies.com
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor