Strange, winsound.Beep() works very well on my XP machine's internal speaker. Maybe you can run this little test ...
# play a sound on a Windows Box (Python2 or 3)
# Playsound(sound, flags) accepts wave sound files and uses
# the external speaker system
# Beep(frequency, duration) uses the internal speaker of the computer
import winsound as ws
# pick a wave file supplied by Windows XP or one of your own ...
soundfile = "C:/Windows/Media/chimes.wav"
# wait one and a half seconds
# play the system exit sound if set
frequency = 800 # hertz or cps
duration = 3000 # milliseconds
PyGame and wxPython also allow you to play wave sound files. Here is an example of pygame code ...
# use the pygame module to play a wave sound file
# pygame is free from: http://www.pygame.org/
# tested with Python26 and Python31
import pygame as pg
will load the whole sound into memory before playback
sound = pg.mixer.Sound(sound_file)
clock = pg.time.Clock()
# how often to check active playback
frame_rate = 30
FREQ = 18000 # play with this for best sound
BITSIZE = -16 # here unsigned 16 bit
CHANNELS = 2 # 1 is mono, 2 is stereo
BUFFER = 1024 # audio buffer size, number of samples
pg.mixer.init(FREQ, BITSIZE, CHANNELS, BUFFER)
# pick a wave (.wav) sound file you have
#sound_file = "Chimes.wav"
sound_file = "DingDong.wav"
Now here's a interesting story .The test code did manage to play the WAV files but not 'The Beep'.Anyway Beep is not my problem,but actually Beep is the only problem here.
Thanks man .Lot to do with Winsound..
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...