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.
New in version 1.5.3.
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.
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant