diff --git a/examples/test_port_connect_cb.nim b/examples/test_port_connect_cb.nim index c120c7b..9fa0700 100644 --- a/examples/test_port_connect_cb.nim +++ b/examples/test_port_connect_cb.nim @@ -39,6 +39,8 @@ if jclient == nil: echo getJackStatusErrorString(status) quit 1 +setControlCHook(cleanup) + discard portRegister(jclient, "in_1", JACK_DEFAULT_AUDIO_TYPE, PortIsInput.ord, 0) discard portRegister(jclient, "out_1", JACK_DEFAULT_AUDIO_TYPE, PortIsOutput.ord, 0)