Compare commits
2 Commits
f5d01c043b
...
5a6a55f071
Author | SHA1 | Date |
---|---|---|
Christopher Arndt | 5a6a55f071 | |
Christopher Arndt | 896768696b |
|
@ -7,10 +7,12 @@ var status: cint
|
|||
|
||||
proc cleanup() {.noconv.} =
|
||||
echo "Cleaning up..."
|
||||
|
||||
if client != nil:
|
||||
discard deactivate(client)
|
||||
discard clientClose(client)
|
||||
client = nil
|
||||
|
||||
quit 0
|
||||
|
||||
proc portConnected(portA: PortIdT; portB: PortIdT; connect: cint; arg: pointer) {.exportc.} =
|
||||
|
@ -29,7 +31,7 @@ proc portConnected(portA: PortIdT; portB: PortIdT; connect: cint; arg: pointer)
|
|||
else:
|
||||
echo "Port B: <unknown>"
|
||||
|
||||
var action = if connect > 0: "connect" else: "disconnect"
|
||||
let action = if connect > 0: "connect" else: "disconnect"
|
||||
echo fmt"Action: {action}"
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
# Package
|
||||
|
||||
version = "0.1.0"
|
||||
author = "Christopher Arndt"
|
||||
description = "A Nim wrapper for the JACK C API"
|
||||
license = "MIT"
|
||||
|
||||
# Dependencies
|
||||
|
||||
requires "nim >= 1.6.0"
|
Loading…
Reference in New Issue