Skip to content

Commit 985514f

Browse files
committed
Renamed portmidi shim
1 parent de7c068 commit 985514f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src_c/cython/pygame/pypm.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ cdef class Output:
523523
# in commit 64314cc3d1a6fdddfc6ff5408a3f83af685b8cea
524524
# portmidi changed the signature of Pt_Time from `PMEXPORT PtTimestamp Pt_Time()` to `PMEXPORT PtTimestamp Pt_Time(void)`
525525
# this change is significant in that no args in a C function declaration is treated differently than void
526-
cdef PtTimestamp compatShimDueToMidiChange(void* arg) noexcept:
526+
cdef PtTimestamp pgCompat_Pt_Time(void* arg) noexcept:
527527
return Pt_Time()
528528

529529
cdef class Input:
@@ -546,7 +546,7 @@ cdef class Input:
546546
self.debug = 0
547547

548548
err = Pm_OpenInput(&(self.midi), input_device, NULL, buffersize,
549-
&compatShimDueToMidiChange, NULL)
549+
&pgCompat_Pt_Time, NULL)
550550
if err < 0:
551551
raise Exception(Pm_GetErrorText(err))
552552

0 commit comments

Comments
 (0)