Skip to content

[3.12] gh-131327: Document winsound.SND_APPLICATION (GH-131328) #131329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/winsound.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions PC/winsound.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,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.");
Expand Down
Loading