Skip to content

Commit

Permalink
fix api7
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellkammer committed Nov 23, 2024
1 parent 8f85cc5 commit 806e7f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions ctcsound7/api7.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ class CsoundParams(ct.Structure):
DRAWGRAPHFUNC = ct.CFUNCTYPE(None, ct.c_void_p, ct.POINTER(Windat))
KILLGRAPHFUNC = ct.CFUNCTYPE(None, ct.c_void_p, ct.POINTER(Windat))
EXITGRAPHFUNC = ct.CFUNCTYPE(ct.c_int32, ct.c_void_p)
CSOUNDPERFTHREAD_p = ct.c_void_p
PROCESSFUNC = ct.CFUNCTYPE(None, ct.c_void_p)


def _declareAPI(libcsound, libcspt):
Expand Down Expand Up @@ -2199,13 +2201,6 @@ def setInput(self, name: str) -> None:
self.setOption(f'-i "{name}"')




CSOUNDPERFTHREAD_p = ct.c_void_p
PROCESSFUNC = ct.CFUNCTYPE(None, ct.c_void_p)



class CsoundPerformanceThread:
"""Runs Csound in a separate thread.
Expand Down
1 change: 1 addition & 0 deletions test/actions-test1.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
args = parser.parse_args()

cs = ct.Csound()
print(f"Csound version: {cs.version()}")

cs.setOption(f"-o{args.outfile}")
ext = os.path.splitext(args.outfile)[1]
Expand Down

0 comments on commit 806e7f3

Please sign in to comment.