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.<br>
<br>Chris - if it were just a disconnected speaker, I don't think he'd get the runtime error...<br><br><div class="gmail_quote">On Sat, Dec 19, 2009 at 2:02 AM, Chris Fuller <span dir="ltr"><<a href="mailto:cfuller084@thinkingplanet.net">cfuller084@thinkingplanet.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Something to keep in mind is that the audio output of your computer and the<br>
system speaker are independent. Sometimes the BELL character (ACSII 0x07)<br>
will sound the system speaker, spending on your OS, drivers, etc.<br>
<br>
The winsound docs say it's the speaker, which is connected to the motherboard<br>
with an odd four pin connector (with only two wires). It's normally only used<br>
during boot up, so it could have been left disconnected and not missed.<br>
<br>
Cheers<br>
<div><div></div><div class="h5"><br>
On Saturday 19 December 2009, Richard D. Moores wrote:<br>
> My laptop, a Toshiba Satellite running Python 3.1 and Vista 64-bit<br>
><br>
> SP2, with the speakers on and otherwise working, won't give me a beep:<br>
> >>> from winsound import Beep<br>
> >>> Beep(500, 500)<br>
><br>
> Traceback (most recent call last):<br>
> File "<pyshell#1>", line 1, in <module><br>
> Beep(500, 500)<br>
> RuntimeError: Failed to beep<br>
><br>
> Please give me some hints as to what I can do about this.<br>
><br>
> Thanks,<br>
><br>
> Dick Moores<br>
> _______________________________________________<br>
> Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
> To unsubscribe or change subscription options:<br>
> <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
><br>
<br>
_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.fsrtechnologies.com">www.fsrtechnologies.com</a><br>