Skip to content

Commit ad0f19d

Browse files
aiskpicnixz
authored andcommitted
pythongh-131327: Document winsound.SND_APPLICATION (pythonGH-131328)
(cherry picked from commit bf4c1bf) Co-authored-by: AN Long <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 1d17f1a commit ad0f19d

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
@@ -50,6 +50,7 @@ PyDoc_STRVAR(sound_module_doc,
5050
"SND_NODEFAULT - Do not play a default beep if the sound can not be found\n"
5151
"SND_NOSTOP - Do not interrupt any sounds currently playing\n" // Raising RuntimeError if needed
5252
"SND_NOWAIT - Return immediately if the sound driver is busy\n" // Without any errors
53+
"SND_APPLICATION - sound is an application-specific alias in the registry."
5354
"\n"
5455
"Beep(frequency, duration) - Make a beep through the PC speaker.\n"
5556
"MessageBeep(type) - Call Windows MessageBeep.");

0 commit comments

Comments
 (0)