view configure.ac @ 171:4260a476a101

2008-10-08 Ioana Ivan <iivan@redhat.com> * src/java/org/classpath/icedtea/pulseaudio/PulseAudioDataLine.java (addStreamListener): startedListener always fires a START event strtedListener notifies drain that there is data on the line (stop): sets writeInterrupted to true (start): doesn't send any events (getBytesInBuffer): new function, returns the number of bytes currently present in a stream's buffer * src/java/org/classpath/icedtea/pulseaudio/PulseAudioSourceDataLine.java: (write): -checks writeInterrupted instead of drain and flush -if stop() was called before write() it writes data to the buffer until the buffer fills, then blocks -moved some code from the synchronized(this) block, since it was causing one test to hang (close): sets writeInterrupted to true (drain): sets writeInterrupted to true if the line is stopped and there is no data on the line, returns immediately, if there is data, blocks until the line is started * src/java/org/classpath/icedtea/pulseaudio/Stream.java (native_pa_stream_updateTimingInfo): new function ( bytesInBuffer): new function * src/native/org_classpath_icedtea_pulseaudio_Stream.c (JNICALL Java_org_classpath_icedtea_pulseaudio_Stream_bytesInBuffer): new function (Java_org_classpath_icedtea_pulseaudio_Stream_native_1pa_1stream_1updateTimingInfo): new function (update_timing_info_callback): new function (Java_org_classpath_icedtea_pulseaudio_Stream_native_1pa_1stream_1writable_1size): return 0 if the stream has been closed
author Ioana Ivan <iivan@redhat.com>
date Wed, 08 Oct 2008 14:27:39 -0400
parents 0894592be2a2
children
line wrap: on
line source

AC_INIT([pulseaudio-java],[0.1],[omajid@redhat.com])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PROG_LIBTOOL

dnl Check for pulseaudio libraries.
PKG_CHECK_MODULES(LIBPULSE,libpulse,[LIBPULSE_FOUND=yes]
    ,[LIBPULSE_FOUND=no])
if test "x${LIBPULSE_FOUND}" = xno
then
  AC_MSG_ERROR([Could not find pulseaudio libraries - \
  Try installing pulseaudio-libs-devel.])
fi
AC_SUBST(LIBPULSE_CFLAGS)
AC_SUBST(LIBPULSE_LIBS)

AC_CONFIG_FILES([
Makefile
src/native/Makefile
])
AC_OUTPUT