Skip to content

Commit 24e7949

Browse files
aiskpicnixz
authored andcommitted
pythongh-131327: Document winsound.SND_APPLICATION (python#131328)
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent b8c1202 commit 24e7949

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Doc/library/winsound.rst

+7
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ provided by Windows platforms. It includes functions and several constants.
135135
This flag is not supported on modern Windows platforms.
136136

137137

138+
.. data:: SND_APPLICATION
139+
140+
The *sound* parameter is an application-specific alias in the registry.
141+
This flag can be combined with the :const:`SND_ALIAS` flag
142+
to specify an application-defined sound alias.
143+
144+
138145
.. data:: MB_ICONASTERISK
139146

140147
Play the ``SystemDefault`` sound.

PC/winsound.c

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ PyDoc_STRVAR(sound_module_doc,
5656
"SND_NODEFAULT - Do not play a default beep if the sound can not be found\n"
5757
"SND_NOSTOP - Do not interrupt any sounds currently playing\n" // Raising RuntimeError if needed
5858
"SND_NOWAIT - Return immediately if the sound driver is busy\n" // Without any errors
59+
"SND_APPLICATION - sound is an application-specific alias in the registry."
5960
"\n"
6061
"Beep(frequency, duration) - Make a beep through the PC speaker.\n"
6162
"MessageBeep(type) - Call Windows MessageBeep.");

0 commit comments

Comments
 (0)