import std/[logging, strformat] import jacket var status: cint descs: ptr UncheckedArray[Description] var log = newConsoleLogger(when defined(release): lvlInfo else: lvlDebug) proc errorCb(msg: cstring) {.cdecl.} = # Suppress verbose JACK error messages when server is not available by # default. Pass ``lvlAll`` when creating the logger to enable them. debug "JACK error: " & $msg addHandler(log) setErrorFunction(errorCb) let jclient = clientOpen("jacket_property", NullOption.ord, status.addr) debug "JACK server status: " & $status if jclient == nil: error getJackStatusErrorString(status) quit 1 let numDescs = getAllProperties(descs) if numDescs != -1: for i in 0.. 0: for p in 0..