Play a short sound...
Erhan Ekici
erhan at uzem.itu.edu.tr
Sat Jun 7 11:32:41 EDT 2003
Quoting Manuel <manuelbastioni at tin.it>:
> This is not necessary, only a amusing addiction. Therefore,
> if it's very complex, I don't play any sound...
>
> > There's a winsound module in the standard library that can do this.
>
> Oh, thanks!
> But about a multiplatform soluction?
>
> thx,
Hi,
Don't Worry about it. No, it is not complex operation.
> But about a multiplatform soluction?
No, only windows platforms
A simple example from tutorial is below :
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)
Erhan Ekici
ITU Distance Learning Center
ITU Electronics and Communication Eng.Student
E-Mail : erhan at uzem.itu.edu.tr
www.uzem.itu.edu.tr
More information about the Python-list
mailing list