Hi Clemens,

Hah, you're quite correct, I handle error conditions by throwing exceptions, 
and I think those cases are indeed induced by opening the device, but not 
releasing it properly. Using exception safe coding, it now seems to work a lot 
better 😊

Thanks!
/Robert

> -----Original Message-----
> From: Clemens Ladisch via Alsa-user [mailto:alsa-user@lists.sourceforge.net]
> Sent: den 7 januari 2018 12:25
> To: alsa-user@lists.sourceforge.net
> Subject: Re: [Alsa-user] Problems opening devices
> 
> Robert Bielik wrote:
> > After this I try snd_pcm_open on the IDs, most of which I get -EBUSY.
> 
> Did you actually close the device from the previous try?
> 
> Check in /proc/asound/cardX/pcm0p/sub0/status if the device is opened.
> 
> 
> Regards,
> Clemens
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Alsa-user mailing list
> Alsa-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-user
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to