MCPcopy Create free account
hub / github.com/bspaans/python-mingus / cfunc

Function cfunc

mingus/midi/pyfluidsynth.py:46–53  ·  view source on GitHub ↗

Build and apply a ctypes prototype complete with parameter flags.

(name, result, *args)

Source from the content-addressed store, hash-verified

44
45
46def cfunc(name, result, *args):
47 """Build and apply a ctypes prototype complete with parameter flags."""
48 atypes = []
49 aflags = []
50 for arg in args:
51 atypes.append(arg[1])
52 aflags.append((arg[2], arg[0]) + arg[3:])
53 return CFUNCTYPE(result, *atypes)((name, _fl), tuple(aflags))
54
55
56api_version = "1.2"

Callers 1

pyfluidsynth.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected