Browse Source

[0.89.13] make buffer resize optional

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@564 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
joq 22 years ago
parent
commit
6863ea10cb
2 changed files with 14 additions and 1 deletions
  1. +9
    -1
      configure.in
  2. +5
    -0
      libjack/client.c

+ 9
- 1
configure.in View File

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


+ 5
- 0
libjack/client.c View File

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


Loading…
Cancel
Save