Skip to content

Commit 5d9b30e

Browse files
authored
Merge pull request #3018 from pygame-community/fix-interactive-midi-test
Fix midi timer reset when quit
2 parents a4eec3a + 8b8766b commit 5d9b30e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src_c/cython/pygame/pypm.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ cdef extern from "porttime.h":
146146
ctypedef long PtTimestamp
147147
ctypedef void (* PtCallback)(PtTimestamp timestamp, void *userData)
148148
PtError Pt_Start(int resolution, PtCallback *callback, void *userData)
149+
PtError Pt_Stop()
149150
PtTimestamp Pt_Time()
150151

151152
cdef long _pypm_initialized
@@ -171,6 +172,7 @@ def Terminate():
171172
your system may crash.
172173
173174
"""
175+
Pt_Stop()
174176
Pm_Terminate()
175177
_pypm_initialized = 0
176178

0 commit comments

Comments
 (0)