From a92c02ebae5ff46dfdc28b985c90d742dea1acbb Mon Sep 17 00:00:00 2001 From: AN Long Date: Sun, 16 Mar 2025 22:42:59 +0900 Subject: [PATCH 1/3] Document winsound.SND_APPLICATION --- Doc/library/winsound.rst | 7 +++++++ PC/winsound.c | 1 + 2 files changed, 8 insertions(+) diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst index f7ca9dc57bbe28..aafad857ae8678 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. + You can combine this flag with the :cosnt:`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."); From d01b7011ebee5127b7d863a1e6185e71493874a3 Mon Sep 17 00:00:00 2001 From: AN Long Date: Sun, 16 Mar 2025 22:57:43 +0900 Subject: [PATCH 2/3] Fix rst typo --- Doc/library/winsound.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst index aafad857ae8678..7fe9a8cdd26c8a 100644 --- a/Doc/library/winsound.rst +++ b/Doc/library/winsound.rst @@ -138,7 +138,7 @@ provided by Windows platforms. It includes functions and several constants. .. data:: SND_APPLICATION The *sound* parameter is an application-specific alias in the registry. - You can combine this flag with the :cosnt:`SND_ALIAS` flag + You can combine this flag with the :const:`SND_ALIAS` flag to specify an application-defined sound alias. From 64b6dc42fe73ab51c3050a15525cbf2a906a1bb5 Mon Sep 17 00:00:00 2001 From: AN Long Date: Mon, 17 Mar 2025 00:01:12 +0900 Subject: [PATCH 3/3] Update Doc/library/winsound.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- Doc/library/winsound.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst index 7fe9a8cdd26c8a..799fb3dea19501 100644 --- a/Doc/library/winsound.rst +++ b/Doc/library/winsound.rst @@ -138,7 +138,7 @@ provided by Windows platforms. It includes functions and several constants. .. data:: SND_APPLICATION The *sound* parameter is an application-specific alias in the registry. - You can combine this flag with the :const:`SND_ALIAS` flag + This flag can be combined with the :const:`SND_ALIAS` flag to specify an application-defined sound alias.