Availability: Windows.
New in version 1.5.2.
The winsound module provides access to the basic sound-playing machinery provided by Windows platforms. It includes two functions and several constants.
0x25
through 0x7fff
). The duration parameter specifies the
number of milliseconds the sound should last. If the system is not
able to beep the speaker, RuntimeError is raised.
Note: Under Windows 95 and 98, the arguments are ignored;
if the system has a sound card, the system default sound is played
(typically ding.wav, or whatever is registered as the default
sound via Control Panel -> Sounds); else (no sound card) the
standard system beep.
New in version 1.6.
None
. Its interpretation depends on the
value of flags, which can be a bit-wise ORed combination of
the constants described below. If the system indicates an error,
RuntimeError is raised.
Note: This module does not support playing from a memory image asynchronously, so a combination of this flag and SND_ASYNC will raise a RuntimeError.
See About this document... for information on suggesting changes.