Seite 1 von 1

winsound stoppen

Verfasst: Sonntag 11. Dezember 2011, 09:01
von BerryBlue
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

Re: winsound stoppen

Verfasst: Sonntag 11. Dezember 2011, 10:30
von BerryBlue
also ich mein sowas wie

Code: Alles auswählen

winsound.stopp("test.wav")

Re: winsound stoppen

Verfasst: Sonntag 11. Dezember 2011, 14:00
von deets
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.
"""