fix: cleanup arg default value; signal list

This commit is contained in:
Christopher Arndt 2022-10-09 21:05:08 +02:00
parent ba5ebc4f4d
commit 5d8cba0f2d
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ proc errorCb(msg: cstring) {.cdecl.} =
# default. Pass ``lvlAll`` when creating the logger to enable them.
debug "JACK error: " & $msg
proc cleanup(sig: cint) {.noconv.} =
proc cleanup(sig: cint = 0) {.noconv.} =
debug "Cleaning up..."
if jclient != nil:
@ -62,4 +62,4 @@ if jclient.activate() == 0:
while true:
sleep(50)
cleanup()
cleanup() # normally not reached

View File

@ -32,7 +32,7 @@ if jclient == nil:
when defined(windows):
setSignalProc(cleanup, SIGABRT, SIGINT, SIGTERM)
else:
setSignalProc(cleanup, SIGHUP, SIGINT, SIGQUIT, SIGTERM)
setSignalProc(cleanup, SIGABRT, SIGHUP, SIGINT, SIGQUIT, SIGTERM)
discard jclient.portRegister("in_1", JACK_DEFAULT_AUDIO_TYPE, PortIsInput.ord, 0)
discard jclient.portRegister("out_1", JACK_DEFAULT_AUDIO_TYPE, PortIsOutput.ord, 0)