[Python-checkins] CVS: python/dist/src/Doc/lib libwinsound.tex,1.7,1.8
Tim Peters
tim_one@users.sourceforge.net
Sun, 18 Feb 2001 23:06:38 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv29022/python/dist/src/Doc/lib
Modified Files:
libwinsound.tex
Log Message:
Take a tour of hell's seedier neighborhoods to try to make winsound.Beep()
do something non-useless on Win9X boxes. WinME unknown to me. Someone with
NT/2000 make sure it still works there!
Index: libwinsound.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libwinsound.tex,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** libwinsound.tex 2001/01/25 17:29:18 1.7
--- libwinsound.tex 2001/02/19 07:06:36 1.8
***************
*** 18,30 ****
Beep the PC's speaker.
The \var{frequency} parameter specifies frequency, in hertz, of the
! sound, and must be in the range 37 through 32,767 (\code{0x25}
! through \code{0x7fff}). The \var{duration} parameter specifies the
! number of milliseconds the sound should last. If the system is not
able to beep the speaker, \exception{RuntimeError} is raised.
! \strong{Note:} Under Windows 95 and 98, the arguments are ignored;
! if the system has a sound card, the system default sound is played
! (typically \file{ding.wav}, or whatever is registered as the default
! sound via Control Panel -> Sounds); else (no sound card) the
! standard system beep.
\versionadded{1.6}
\end{funcdesc}
--- 18,29 ----
Beep the PC's speaker.
The \var{frequency} parameter specifies frequency, in hertz, of the
! sound, and must be in the range 37 through 32,767.
! The \var{duration} parameter specifies the number of milliseconds the
! sound should last. If the system is not
able to beep the speaker, \exception{RuntimeError} is raised.
! \strong{Note:} Under Windows 95 and 98, the Windows \cfunction{Beep()}
! function exists but is useless (it ignores its arguments). In rhat
! case Python simulates it via direct port manipulation (added in version
! 2.1). It's unknown whether that will work on all systems.
\versionadded{1.6}
\end{funcdesc}