PyDocs

MS Windows Specific Services

MS Windows Specific Services

winsound

Windows

The winsound module provides access to the basic sound-playing machinery provided by Windows platforms. It includes functions and several constants.
Symbols in winsound

b

Beep
Beep the PC’s speaker.

m

MB_ICONASTERISK
Play the SystemDefault sound.
MB_ICONERROR
Play the SystemHand sound.
MB_ICONEXCLAMATION
Play the SystemExclamation sound.
MB_ICONHAND
Play the SystemHand sound.
MB_ICONINFORMATION
Play the SystemDefault sound.
MB_ICONQUESTION
Play the SystemQuestion sound.
MB_ICONSTOP
Play the SystemHand sound.
MB_ICONWARNING
Play the SystemExclamation sound.
MB_OK
Play the SystemDefault sound.
MessageBeep
Call the underlying MessageBeep() function from the Platform API.

p

PlaySound
Call the underlying PlaySound() function from the Platform API.

s

SND_ALIAS
The sound parameter is a sound association name from the registry.
SND_APPLICATION
The sound parameter is an application-specific alias in the registry.
SND_ASYNC
Return immediately, allowing sounds to play asynchronously.
SND_FILENAME
The sound parameter is the name of a WAV file.
SND_LOOP
Play the sound repeatedly.
SND_MEMORY
The sound parameter to PlaySound() is a memory image of a WAV file, as a bytes-like object.
SND_NODEFAULT
If the specified sound cannot be found, do not play the system default sound.
SND_NOSTOP
Do not interrupt sounds currently playing.
SND_NOWAIT
Return immediately if the sound driver is busy.
SND_PURGE
Stop playing all instances of the specified sound.
SND_SENTRY
Triggers a SoundSentry event when the sound is played.
SND_SYNC
The sound is played synchronously.
SND_SYSTEM
Assign the sound to the audio session for system notification sounds.