fix: add missing cleanup to example

Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
This commit is contained in:
Christopher Arndt 2022-10-06 16:41:23 +02:00
parent b8d5119d03
commit b28d4fbfa6
1 changed files with 2 additions and 0 deletions

View File

@ -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)