[Portaudio] PulseAudio Host API for Portaudio

sqweek sqweek at gmail.com
Thu Dec 17 09:15:56 EST 2015

On 17 December 2015 at 21:52, sqweek <sqweek at gmail.com> wrote:
> On 17 December 2015 at 21:29, sqweek <sqweek at gmail.com> wrote:
>> I tried to test this by recompiling portaudio without jack support,
>> but it seems there's an issue with the configure script, as this also
>> disables pulse support (even using --without-jack --with-pulse).
> Whoops, the correct switch is --with-pulseaudio but it makes no
> difference. Having looked at the configure script it looks like the
> problem is the "checking for PULSE" section relies on one of the
> PULSE_CFLAGS or PKG_CONFIG variables being non-empty. However the
> PKG_CONFIG variable is only initialised if the preceding test for JACK
> runs (have_jack must not be "no").
> I'm not sure where the correct place is to fix that, understanding of
> the autotools suite has always eluded me.
> -sqweek

Apologies for the triple-post, this will be my last for now. After
hacking the configure script (moved the `if test "x$with_jack" !=
"xno"` test below the PKG_CONFIG initialisation), I also had to add
src/common/pa_ringbuffer.o to the COMMON_OBJS list in the resulting
Makefile for the library to link successfully.

But it seems jack was unrelated, I still see the same crash in pa_devs:

(gdb) thread apply all bt

Thread 4 (Thread 0x7fffef947700 (LWP 19699)):
#0  0x00007ffff6bcf5f8 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff6bd0a7a in abort () from /usr/lib/libc.so.6
#2  0x00007ffff6963a05 in ?? () from /usr/lib/pulseaudio/libpulsecommon-7.1.so
#3  0x00007ffff777ba0c in pa_mainloop_dispatch () from /usr/lib/libpulse.so.0
#4  0x00007ffff777bc1c in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#5  0x00007ffff777bcc0 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#6  0x00007ffff7789ee6 in ?? () from /usr/lib/libpulse.so.0
#7  0x00007ffff69705f8 in ?? () from /usr/lib/pulseaudio/libpulsecommon-7.1.so
#8  0x00007ffff6f474a4 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff6c8513d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff7f3f780 (LWP 19696)):
#0  0x00007ffff6f49527 in __pthread_mutex_lock_full () from
#1  0x00007ffff696f73e in pa_mutex_lock () from
#2  0x00007ffff7bc4c41 in PaPulseAudio_Initialize (hostApi=0x602050,
    at src/hostapi/pulseaudio/pa_hostapi_pulseaudio.c:530
#3  0x00007ffff7bb6c83 in InitializeHostApis () at src/common/pa_front.c:226
#4  Pa_Initialize () at src/common/pa_front.c:374
#5  0x0000000000400acf in main () at ./examples/pa_devs.c:110


More information about the Portaudio mailing list