diff options
author | sletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2009-10-20 16:10:28 +0000 |
---|---|---|
committer | sletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2009-10-20 16:10:28 +0000 |
commit | ae57b1d0330441744b3a1eecee4305bffb92ad22 (patch) | |
tree | 22ee50c9723bfcf9e8242144549b9f30b8f1c97f /tests/test.cpp | |
parent | d09d8c3c82e8e20901db5741adfb2e0ffc52e1c5 (diff) | |
download | jack2-ae57b1d0330441744b3a1eecee4305bffb92ad22.tar.gz |
CoreAudio backend now issue a JackInfoShutdownCallback when an unrecoverable error is detected (sampling rate change, stream configuration changeā¦)
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3654 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'tests/test.cpp')
-rw-r--r-- | tests/test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test.cpp b/tests/test.cpp index 2358a891..26d4eedf 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -220,6 +220,12 @@ void jack_shutdown(void *arg) exit(1); } +void jack_info_shutdown(int code, const char* reason, void *arg) +{ + printf("JACK server failure : %s\n", reason); + exit(1); +} + void Jack_Port_Register(jack_port_id_t port, int mode, void *arg) { port_callback_reg++; @@ -679,6 +685,7 @@ int main (int argc, char *argv[]) } jack_on_shutdown(client1, jack_shutdown, 0); + jack_on_info_shutdown(client1, jack_info_shutdown, 0); if (jack_set_buffer_size_callback(client1, Jack_Update_Buffer_Size, 0) != 0) { printf("Error when calling buffer_size_callback !\n"); |