opening slow audio devices on boot

This commit is contained in:
Robin Davies
2024-08-11 16:17:29 -04:00
parent f82408607e
commit fcc5e813a4
8 changed files with 27 additions and 18 deletions
+1 -1
View File
@@ -1961,7 +1961,7 @@ namespace pipedal
for (int retry = 0; retry < 15; ++retry)
{
err = snd_pcm_open(&playbackHandle, alsaDeviceName.c_str(), SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK);
if (err == -EBUSY)
if (err < 0) // field report of a device that is present, but won't immediately open.
{
sleep(1);
continue;