diff options
author | Fred Drake <fdrake@acm.org> | 2001-02-23 19:10:41 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-02-23 19:10:41 (GMT) |
commit | afdc8fc0ad6e771d4afddb20a23ef21bf9ab06d5 (patch) | |
tree | 863370abaaae091bf68a6957d31597c27129b2d7 /Doc | |
parent | 22e4182d6065b63532e7af8b14485ce0ab0075db (diff) | |
download | cpython-afdc8fc0ad6e771d4afddb20a23ef21bf9ab06d5.zip cpython-afdc8fc0ad6e771d4afddb20a23ef21bf9ab06d5.tar.gz cpython-afdc8fc0ad6e771d4afddb20a23ef21bf9ab06d5.tar.bz2 |
Fix up the markup in some recently-added portions of the text.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libwinsound.tex | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/Doc/lib/libwinsound.tex b/Doc/lib/libwinsound.tex index a873b9e..a176221 100644 --- a/Doc/lib/libwinsound.tex +++ b/Doc/lib/libwinsound.tex @@ -44,35 +44,36 @@ two functions and several constants. \end{datadesc} \begin{datadesc}{SND_ALIAS} - The \var{sound} parameter is a sound association name from the registry. - If the registry contains no such name, play the system default sound - unless \constant{SND_NODEFAULT} is also specified. - If no default sound is registered, raise RuntimeError. - Do not use with \constant{SND_FILENAME). + The \var{sound} parameter is a sound association name from the + registry. If the registry contains no such name, play the system + default sound unless \constant{SND_NODEFAULT} is also specified. + If no default sound is registered, raise \exception{RuntimeError}. + Do not use with \constant{SND_FILENAME}. All Win32 systems support at least the following; most systems support many more: - \begin{verbatim} - PlaySound argument Corresponding Control Panel -> Sounds name - ------------------ ------------------------------------------ - 'SystemAsterisk' Asterisk - 'SystemExclamation' Exclamation - 'SystemExit' Exit Windows - 'SystemHand' Critical Stop - 'SystemQuestion' Question - \end{verbatim} - - For example, - - \begin{verbatim} - # Play Windows exit sound. - winsound.PlaySound("SystemExit", winsound.SND_ALIAS) - - # Probably play Windows default sound, if any is registered (because - # "*" probably isn't the registered name of any sound). - winsound.PlaySound("*", winsound.SND_ALIAS) - \end{verbatim} +\begin{tableii}{l|l}{code} + {\function{PlaySound()} \var{name}} + {Corresponding Control Panel Sound name} + \lineii{'SystemAsterisk'} {Asterisk} + \lineii{'SystemExclamation'}{Exclamation} + \lineii{'SystemExit'} {Exit Windows} + \lineii{'SystemHand'} {Critical Stop} + \lineii{'SystemQuestion'} {Question} +\end{tableii} + + For example: + +\begin{verbatim} +import winsound +# Play Windows exit sound. +winsound.PlaySound("SystemExit", winsound.SND_ALIAS) + +# Probably play Windows default sound, if any is registered (because +# "*" probably isn't the registered name of any sound). +winsound.PlaySound("*", winsound.SND_ALIAS) +\end{verbatim} \end{datadesc} \begin{datadesc}{SND_LOOP} @@ -86,7 +87,7 @@ two functions and several constants. \strong{Note:} This module does not support playing from a memory image asynchronously, so a combination of this flag and - \constant{SND_ASYNC} will raise a \exception{RuntimeError}. + \constant{SND_ASYNC} will raise \exception{RuntimeError}. \end{datadesc} \begin{datadesc}{SND_PURGE} |