From 91afc2def3de64b8da151d9dac56768d32a09256 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 9 Jun 2016 17:53:56 +0200 Subject: [PATCH] Make it possible to stop playback --- git-sound.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git-sound.py b/git-sound.py index 672d431..a43b2aa 100644 --- a/git-sound.py +++ b/git-sound.py @@ -360,6 +360,9 @@ class GitMIDI(MIDIFile): self.__playing = False + def stop(self): + self.mixer.music.stop() + def get_play_pos(self): if not self.__playing: return None