https://github.com/python/cpython/commit/4d7d249a0560d377b5a4c7fc0999bfa7ef5d67fd
commit: 4d7d249a0560d377b5a4c7fc0999bfa7ef5d67fd
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: picnixz <10796600+picn...@users.noreply.github.com>
date: 2025-03-16T15:52:48Z
summary:

[3.13] gh-131327: Document winsound.SND_APPLICATION (GH-131328) (#131330)

gh-131327: Document winsound.SND_APPLICATION (GH-131328)
(cherry picked from commit bf4c1bf344ed1f80c4e8f4fd5b1a8f0e0858777e)

Co-authored-by: AN Long <a...@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picn...@users.noreply.github.com>

files:
M Doc/library/winsound.rst
M PC/winsound.c

diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst
index f7ca9dc57bbe28..799fb3dea19501 100644
--- a/Doc/library/winsound.rst
+++ b/Doc/library/winsound.rst
@@ -135,6 +135,13 @@ provided by Windows platforms.  It includes functions and 
several constants.
       This flag is not supported on modern Windows platforms.
 
 
+.. data:: SND_APPLICATION
+
+   The *sound* parameter is an application-specific alias in the registry.
+   This flag can be combined with the :const:`SND_ALIAS` flag
+   to specify an application-defined sound alias.
+
+
 .. data:: MB_ICONASTERISK
 
    Play the ``SystemDefault`` sound.
diff --git a/PC/winsound.c b/PC/winsound.c
index 094c77ae34d678..1cb42f2f3bdfc6 100644
--- a/PC/winsound.c
+++ b/PC/winsound.c
@@ -56,6 +56,7 @@ PyDoc_STRVAR(sound_module_doc,
 "SND_NODEFAULT - Do not play a default beep if the sound can not be found\n"
 "SND_NOSTOP - Do not interrupt any sounds currently playing\n"  // Raising 
RuntimeError if needed
 "SND_NOWAIT - Return immediately if the sound driver is busy\n" // Without any 
errors
+"SND_APPLICATION - sound is an application-specific alias in the registry."
 "\n"
 "Beep(frequency, duration) - Make a beep through the PC speaker.\n"
 "MessageBeep(type) - Call Windows MessageBeep.");

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to