Skip to content

Commit

Permalink
Merge pull request #3018 from pygame-community/fix-interactive-midi-test
Browse files Browse the repository at this point in the history
Fix midi timer reset when quit
  • Loading branch information
zoldalma999 authored Sep 29, 2024
2 parents a4eec3a + 8b8766b commit 5d9b30e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src_c/cython/pygame/pypm.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ cdef extern from "porttime.h":
ctypedef long PtTimestamp
ctypedef void (* PtCallback)(PtTimestamp timestamp, void *userData)
PtError Pt_Start(int resolution, PtCallback *callback, void *userData)
PtError Pt_Stop()
PtTimestamp Pt_Time()

cdef long _pypm_initialized
Expand All @@ -171,6 +172,7 @@ def Terminate():
your system may crash.
"""
Pt_Stop()
Pm_Terminate()
_pypm_initialized = 0

Expand Down

0 comments on commit 5d9b30e

Please sign in to comment.