Skip to content

Commit c5a23ab

Browse files
miss-islingtonaiskpicnixz
authored
[3.12] gh-131327: Document winsound.SND_APPLICATION (GH-131328) (#131329)
gh-131327: Document winsound.SND_APPLICATION (GH-131328) (cherry picked from commit bf4c1bf) Co-authored-by: AN Long <aisk@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 1d17f1a commit c5a23ab

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Doc/library/winsound.rst

Lines changed: 7 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)