@@ -44,35 +44,36 @@ \section{\module{winsound} ---
4444\end {datadesc }
4545
4646\begin {datadesc }{SND_ALIAS}
47- The \var {sound} parameter is a sound association name from the registry.
48- If the registry contains no such name, play the system default sound
49- unless \constant {SND_NODEFAULT} is also specified.
50- If no default sound is registered, raise RuntimeError.
51- Do not use with \constant {SND_FILENAME) .
47+ The \var {sound} parameter is a sound association name from the
48+ registry. If the registry contains no such name, play the system
49+ default sound unless \constant {SND_NODEFAULT} is also specified.
50+ If no default sound is registered, raise \exception { RuntimeError} .
51+ Do not use with \constant {SND_FILENAME} .
5252
5353 All Win32 systems support at least the following; most systems support
5454 many more:
5555
56- \begin {verbatim }
57- PlaySound argument Corresponding Control Panel -> Sounds name
58- ------------------ ------------------------------------------
59- 'SystemAsterisk' Asterisk
60- 'SystemExclamation' Exclamation
61- 'SystemExit' Exit Windows
62- 'SystemHand' Critical Stop
63- 'SystemQuestion' Question
64- \end {verbatim }
65-
66- For example,
67-
68- \begin {verbatim }
69- # Play Windows exit sound.
70- winsound.PlaySound("SystemExit", winsound.SND_ALIAS)
71-
72- # Probably play Windows default sound, if any is registered (because
73- # "*" probably isn't the registered name of any sound).
74- winsound.PlaySound("*", winsound.SND_ALIAS)
75- \end {verbatim }
56+ \begin {tableii }{l|l}{code}
57+ {\function {PlaySound()} \var {name}}
58+ {Corresponding Control Panel Sound name}
59+ \lineii {'SystemAsterisk'} {Asterisk}
60+ \lineii {'SystemExclamation'}{Exclamation}
61+ \lineii {'SystemExit'} {Exit Windows}
62+ \lineii {'SystemHand'} {Critical Stop}
63+ \lineii {'SystemQuestion'} {Question}
64+ \end {tableii }
65+
66+ For example:
67+
68+ \begin {verbatim }
69+ import winsound
70+ # Play Windows exit sound.
71+ winsound.PlaySound("SystemExit", winsound.SND_ALIAS)
72+
73+ # Probably play Windows default sound, if any is registered (because
74+ # "*" probably isn't the registered name of any sound).
75+ winsound.PlaySound("*", winsound.SND_ALIAS)
76+ \end {verbatim }
7677\end {datadesc }
7778
7879\begin {datadesc }{SND_LOOP}
@@ -86,7 +87,7 @@ \section{\module{winsound} ---
8687
8788 \strong {Note:} This module does not support playing from a memory
8889 image asynchronously, so a combination of this flag and
89- \constant {SND_ASYNC} will raise a \exception {RuntimeError}.
90+ \constant {SND_ASYNC} will raise \exception {RuntimeError}.
9091\end {datadesc }
9192
9293\begin {datadesc }{SND_PURGE}
0 commit comments