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
|
self.__playing = False
|
||||||
|
|
||||||
|
def stop(self):
|
||||||
|
self.mixer.music.stop()
|
||||||
|
|
||||||
def get_play_pos(self):
|
def get_play_pos(self):
|
||||||
if not self.__playing:
|
if not self.__playing:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user