My application should play some tracks simultaneously and work in a common system in which sound card is not supplying hardware mixing. Tracks may have different bitrate and channels count. So I'm opening alsa handle for the each track by calling function snd_pcm_open( &pcm, "plug:dmix", SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK );
After closing last alsa handle (snd_pcm_close) and trying to open the new one, it's failed with error: ALSA lib pcm_hw.c:1055snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy ALSA lib pcm_dmix.c:948snd_pcm_dmix_open) unable to open slave How can I solve this problem? ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel