diff options
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | src/jalv.c | 11 | ||||
-rw-r--r-- | wscript | 2 |
3 files changed, 18 insertions, 1 deletions
@@ -1,3 +1,9 @@ +jalv (1.4.7) unstable; + + * Exit on jack shutdown + + -- David Robillard <d@drobilla.net> Fri, 26 Sep 2014 22:36:07 -0400 + jalv (1.4.6) stable; * Show newly saved presets in the preset menu @@ -414,6 +414,15 @@ jack_buffer_size_cb(jack_nframes_t nframes, void* data) return 0; } +/** Jack shutdown callback. */ +static void +jack_shutdown_cb(void* data) +{ + Jalv* const jalv = (Jalv*)data; + jalv_close_ui(jalv); + zix_sem_post(jalv->done); +} + /** Jack process callback. */ static REALTIME int jack_process_cb(jack_nframes_t nframes, void* data) @@ -1187,6 +1196,8 @@ main(int argc, char** argv) &jack_process_cb, (void*)(&jalv)); jack_set_buffer_size_callback(jalv.jack_client, &jack_buffer_size_cb, (void*)(&jalv)); + jack_on_shutdown(jalv.jack_client, + &jack_shutdown_cb, (void*)(&jalv)); #ifdef JALV_JACK_SESSION jack_set_session_callback(jalv.jack_client, &jack_session_cb, (void*)(&jalv)); @@ -4,7 +4,7 @@ from waflib.extras import autowaf as autowaf import waflib.Options as Options # Version of this package (even if built as a child) -JALV_VERSION = '1.4.6' +JALV_VERSION = '1.4.7' # Variables for 'waf dist' APPNAME = 'jalv' |