Make it possible to stop playback
This commit is contained in:
parent
282e7cefe6
commit
91afc2def3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user