Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Commit

Permalink
proper shutdown routine for jack
Browse files Browse the repository at this point in the history
  • Loading branch information
Skrylar committed Mar 26, 2019
1 parent 40d0de1 commit b4bdeb4
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/jaq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,24 @@ bool client::open() {
return true;
}

bool client::close() {
return false;
}
bool client::close() {
if (lib) {
jack_client_open = 0;
jack_get_buffer_size = 0;
jack_get_sample_rate = 0;
jack_set_buffer_size_callback = 0;
jack_set_sample_rate_callback = 0;
jack_set_process_callback = 0;
jack_port_rename = 0;
jack_port_unregister = 0;
jack_port_register = 0;
jack_port_get_buffer = 0;
jack_activate = 0;
dlclose(lib);
lib = 0;
}
return true;
}

} /* namespace jaq */

Expand Down

0 comments on commit b4bdeb4

Please sign in to comment.