[Tutor] No beep from winsound.Beep(500, 500)
marc.tompkins at gmail.com
Sat Dec 19 11:36:36 CET 2009
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
On Sat, Dec 19, 2009 at 2:02 AM, Chris Fuller <cfuller084 at thinkingplanet.net
> 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
> with an odd four pin connector (with only two wires). It's normally only
> during boot up, so it could have been left disconnected and not missed.
> 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 at python.org
> > To unsubscribe or change subscription options:
> > http://mail.python.org/mailman/listinfo/tutor
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor