winsound.PlaySound(sound, flags)
Call the underlying PlaySound()
function from the Platform API. The sound parameter may be a filename, audio data as a string, or None
. Its interpretation depends on the value of flags, which can be a bitwise ORed combination of the constants described below. If the sound parameter is None
, any currently playing waveform sound is stopped. If the system indicates an error, RuntimeError
is raised.
Please login to continue.