diff --git a/examples/jacket_info.nim b/examples/jacket_info.nim index d7b4417..993ffc1 100644 --- a/examples/jacket_info.nim +++ b/examples/jacket_info.nim @@ -1,7 +1,6 @@ import std/logging import jacket -var jclient: ClientP var status: cint var log = newConsoleLogger(when defined(release): lvlInfo else: lvlDebug) @@ -12,7 +11,7 @@ proc errorCb(msg: cstring) {.cdecl.} = addHandler(log) setErrorFunction(errorCb) -jclient = clientOpen("jacket_info", NullOption.ord, status.addr) +var jclient = clientOpen("jacket_info", NullOption.ord, status.addr) debug "JACK server status: " & $status if jclient == nil: @@ -22,9 +21,9 @@ if jclient == nil: echo("JACK version: ", getVersionString()) echo("Sample rate: ", jclient.getSampleRate) echo("Buffer size: ", jclient.getBufferSize) +echo("RT enabled: ", if jclient.isRealtime > 0: "yes" else: "no") echo("DSP load: ", jclient.cpuLoad, "%") echo("Server time: ", getTime()) echo("Client name: ", jclient.getClientName) -echo("RT enabled: ", if jclient.isRealtime > 0: "yes" else: "no") discard jclient.clientClose