beep again
Cesar Rabak
csrabak at uol.com.br
Thu Jan 25 11:54:50 EST 2001
Count a vote for this!
Fredrik Lundh wrote:
>
> Tim Peters wrote:
> > I suppose the other choice is to remap this to the MS
> > MessageBeep(MB_OK) function, so it plays the default
> > sound on *all* systems.
>
> how about renaming "winsound" to "_winsound", and
> introducing a Python wrapper:
>
> # winsound.py
> from _winsound import *
> platform = ...
> if platform in ("win95", "win98"):
> def Beep(...):
> ...generate wave data...
> PlaySound(data)
>
> (may Will's synthesizer code could fit in there somewhere)
>
> Cheers /F
More information about the Python-list
mailing list