AC_SUBST(JACK_LIBS)
dnl upcomming jack2 (1.9.7 will have the new api as well
- AG_GST_PKG_CHECK_MODULES(JACK_0_120_2, jack >= 0.120.2 jack < 1.0)
- if test x$HAVE_JACK_0_120_2 = xyes; then
- AC_DEFINE(HAVE_JACK_0_120_2, 1, [defined if jack >= 0.120.2 is available])
+ AG_GST_PKG_CHECK_MODULES(JACK_0_120_1, jack >= 0.120.1 jack < 1.0)
+ if test x$HAVE_JACK_0_120_1 = xyes; then
+ AC_DEFINE(HAVE_JACK_0_120_1, 1, [defined if jack >= 0.120.1 is available])
fi
])
{
GstJackAudioSink *sink;
guint i, res = 0;
-#ifdef HAVE_JACK_0_120_2
+#ifdef HAVE_JACK_0_120_1
jack_latency_range_t range;
#else
guint latency;
client = gst_jack_audio_client_get_client (sink->client);
for (i = 0; i < sink->port_count; i++) {
-#ifdef HAVE_JACK_0_120_2
+#ifdef HAVE_JACK_0_120_1
jack_port_get_latency_range (sink->ports[i], JackPlaybackLatency, &range);
if (range.max > res)
res = range.max;
{
GstJackAudioSrc *src;
guint i, res = 0;
-#ifdef HAVE_JACK_0_120_2
+#ifdef HAVE_JACK_0_120_1
jack_latency_range_t range;
#else
guint latency;
client = gst_jack_audio_client_get_client (src->client);
for (i = 0; i < src->port_count; i++) {
-#ifdef HAVE_JACK_0_120_2
+#ifdef HAVE_JACK_0_120_1
jack_port_get_latency_range (src->ports[i], JackCaptureLatency, &range);
if (range.max > res)
res = range.max;