Skip to content

Commit

Permalink
Renamed portmidi shim
Browse files Browse the repository at this point in the history
  • Loading branch information
oddbookworm committed May 21, 2024
1 parent de7c068 commit 985514f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src_c/cython/pygame/pypm.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ cdef class Output:
# in commit 64314cc3d1a6fdddfc6ff5408a3f83af685b8cea
# portmidi changed the signature of Pt_Time from `PMEXPORT PtTimestamp Pt_Time()` to `PMEXPORT PtTimestamp Pt_Time(void)`
# this change is significant in that no args in a C function declaration is treated differently than void
cdef PtTimestamp compatShimDueToMidiChange(void* arg) noexcept:
cdef PtTimestamp pgCompat_Pt_Time(void* arg) noexcept:
return Pt_Time()

cdef class Input:
Expand All @@ -546,7 +546,7 @@ cdef class Input:
self.debug = 0

err = Pm_OpenInput(&(self.midi), input_device, NULL, buffersize,
&compatShimDueToMidiChange, NULL)
&pgCompat_Pt_Time, NULL)
if err < 0:
raise Exception(Pm_GetErrorText(err))

Expand Down

0 comments on commit 985514f

Please sign in to comment.