Winsound Module
Akinori Tsuchida
akituc at highway.ne.jp
Fri Feb 11 05:23:52 EST 2000
I play music on my NT system as following,
[Module]>>> import winsound
[Play] >>>
winsound.PlaySound("filename",winsound.SND_FILENAME|winsound.SND_LOOP|winsound.SND_ASYNC)
[Stop] >>>
winsound.PlaySound("filename",winsound.SND_FILENAME|winsound.SND_PURGE)
I have two questions with "winsound" module. Please help!
1. Sometimes third command [Stop] doesn't work as desired and
music starts from scratch.
Maybe third command stops [Play] but it starts music itself
too. What should I do?
2. If you exit Python without stopping playing music by
third command, how can you stop it after all?
Sending kill signal to Python PID doesn't seem to work.
Thanks for reading.
Akinori Tsuchida.
More information about the Python-list
mailing list