thestk/rtaudio

Fails to find PulseAudio devices with a functional PulseAudio

yurivict opened this issue · 1 comments

This program:

int main()
{
  RtAudio dac;
  if ( dac.getDeviceCount() < 1 ) {
    std::cout << "\nNo audio devices found!\n";
    exit( 0 );
  }
  std::cout << "\nFound " << dac.getDeviceCount() << " audio devices\n";
}

prints this:

W: [(null)] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.

RtApiPulse::DeviceInfo pa_context_connect() failed: Connection refused

W: [(null)] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.

RtApiPulse::DeviceInfo pa_context_connect() failed: Connection refused


No audio devices found!

Version: 5.2.0
pulseaudio-14.2
FreeBSD 13.1

I'm not sure what the problem was. I downloaded the current master and ran:

./autogen.sh --no-configure
./configure --with-pulse
make
cd tests
./audioprobe
./playsaw 2 44100

And had no problems.