Skip to content

Commit 4d7d249

Browse files
miss-islingtonaiskpicnixz
authored
[3.13] gh-131327: Document winsound.SND_APPLICATION (GH-131328) (#131330)
gh-131327: Document winsound.SND_APPLICATION (GH-131328) (cherry picked from commit bf4c1bf) Co-authored-by: AN Long <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 1512cc0 commit 4d7d249

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)