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 317 forks source link

ALSA error on Linux: RtApiAlsa::probeDeviceInfo: snd_pcm_open (...) error for device (...), Invalid argument. #425

Open lkotsonis opened 5 months ago

lkotsonis commented 5 months ago

Hi,

I keep getting this error on Ubuntu 22.04.4 LTS. In the beginning I thought it was an issue with how I use the API but I built the latest master locally (commit cb03db3) and tried to run the playsaw test executable:

tests git:(master) ✗ ./playsaw 1 44100  

RtApiAlsa::probeDeviceInfo: snd_pcm_open (playback) error for device (hw:sofhdadsp,1), Invalid argument.

RtApiAlsa::probeDeviceInfo: snd_pcm_open (capture) error for device (hw:sofhdadsp,1), Invalid argument.

errorCallback: RtApiAlsa::probeDeviceInfo: snd_pcm_open (playback) error for device (hw:sofhdadsp,1), Invalid argument.

errorCallback: RtApiAlsa::probeDeviceInfo: snd_pcm_open (capture) error for device (hw:sofhdadsp,1), Invalid argument.

RtAudio alsa: 
Playing ... quit with Ctrl-C (buffer size = _NOT_ 512).
running realtime scheduling
streamTime = 1.01007
streamTime = 2.00853
streamTime = 3.00698
streamTime = 4.00544

I also checked and jack/pipewire are not running. The ALSA version on this machine is 1.2.6.1. Is there any chance that this makes a difference?