[Tutor] System Beep?

D-Man dsh8290@rit.edu
Thu, 15 Mar 2001 10:57:39 -0500


On Wed, Mar 14, 2001 at 07:16:20PM -0800, Sean 'Shaleh' Perry wrote:
| On Wed, Mar 14, 2001 at 06:27:45PM -0800, Britt Green wrote:
| > I was wondering what the easiest way was to get my program to make a beep. I 
| > didn't see anything in the sys module. When I use the winsound.beep() 
| > function, no matter what number I enter for the frequency, my speakers stay 
| > silent. Any tips?

Not totally related, but on Win9x, windows ignores the arguments to
Beep.  On WinNT and 2K, however, windows actually adjusts the sound
according to the arguments.

It works on this Win2K system.

| >>> print '\a' # make the system beep 

This also works.  It only gives the default beep, with no
customization (obviously).


Are your speakers on?  Are they plugged in?  Do you have the proper
driver for your sound card?  Sure, they're stupid questions, but it is
easy to overlook something :-).  Make sure that other things (ie
WinAmp) can play sound.

-D