diff --git a/configure.in b/configure.in index 575f804..fa1a206 100644 --- a/configure.in +++ b/configure.in @@ -15,7 +15,7 @@ dnl changes are made dnl --- JACK_MAJOR_VERSION=0 JACK_MINOR_VERSION=89 -JACK_MICRO_VERSION=12 +JACK_MICRO_VERSION=13 dnl --- dnl HOWTO: updating the jack protocal version @@ -131,6 +131,14 @@ dnl CFLAGS=$JACK_CFLAGS +AC_ARG_ENABLE(resize, + [ --enable-resize enable buffer resizing], + [ if test "x$enable_resize" != "xno" ; then + AC_DEFINE(DO_BUFFER_RESIZE,,[Enable buffer resizing]) + fi + ] +) + AC_ARG_ENABLE(debug, [ --enable-debug enable debugging messages in jackd and libjack], [ if test "x$enable_debug" != "xno" ; then diff --git a/libjack/client.c b/libjack/client.c index b28a551..00bea82 100644 --- a/libjack/client.c +++ b/libjack/client.c @@ -1426,12 +1426,17 @@ jack_get_buffer_size (jack_client_t *client) int jack_set_buffer_size (jack_client_t *client, jack_nframes_t nframes) { +#ifdef DO_BUFFER_RESIZE jack_request_t req; req.type = SetBufferSize; req.x.nframes = nframes; return jack_client_deliver_request (client, &req); +#else + return ENOSYS; + +#endif /* DO_BUFFER_RESIZE */ } int