thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 318 forks source link

Fails to find PulseAudio devices with a functional PulseAudio #361

Closed yurivict closed 2 years ago

yurivict commented 2 years ago

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

garyscavone commented 2 years ago

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.