Lines Matching refs:sound
6 :synopsis: Access to the sound-playing machinery for Windows.
13 The :mod:`winsound` module provides access to the basic sound-playing machinery
20 of the sound, and must be in the range 37 through 32,767. The *duration*
21 parameter specifies the number of milliseconds the sound should last. If the
25 .. function:: PlaySound(sound, flags)
28 *sound* parameter may be a filename, a system sound alias, audio data as a
31 combination of the constants described below. If the *sound* parameter is
32 ``None``, any currently playing waveform sound is stopped. If the system
39 plays a sound as specified in the registry. The *type* argument specifies which
40 sound to play; possible values are ``-1``, ``MB_ICONASTERISK``,
43 fallback if a sound cannot be played otherwise. If the system indicates an
49 The *sound* parameter is the name of a WAV file. Do not use with
55 The *sound* parameter is a sound association name from the registry. If the
56 registry contains no such name, play the system default sound unless
57 :const:`SND_NODEFAULT` is also specified. If no default sound is registered,
80 # Play Windows exit sound.
83 # Probably play Windows default sound, if any is registered (because
84 # "*" probably isn't the registered name of any sound).
90 Play the sound repeatedly. The :const:`SND_ASYNC` flag must also be used to
96 The *sound* parameter to :func:`PlaySound` is a memory image of a WAV file, as a
107 Stop playing all instances of the specified sound.
121 If the specified sound cannot be found, do not play the system default sound.
131 Return immediately if the sound driver is busy.
140 Play the ``SystemDefault`` sound.
145 Play the ``SystemExclamation`` sound.
150 Play the ``SystemHand`` sound.
155 Play the ``SystemQuestion`` sound.
160 Play the ``SystemDefault`` sound.