fix: cleanup arg default value; signal list
This commit is contained in:
parent
ba5ebc4f4d
commit
5d8cba0f2d
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue