gibt es eine moeglichkeit ein Lied, das mit hilfe
von winsound gespilt wird, wieder zu stoppen?
ich schaff es. ähmlich nur indem ich eine. neuen ton ausgebe.
Danke schon mal fuer eure Antworten
winsound stoppen
also ich mein sowas wie
Code: Alles auswählen
winsound.stopp("test.wav")
Ich weis erst was ich denke, wenn ich höre was ich sage!
Lies doch mal die Doku.
"""
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.
"""
"""
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.
"""