Skip to contentSkip to conversation

reopen with "plug:dmix" failure

DISCUSSION Konstantin Stepaniuk 1 participant 1 message Jul 10, 2003

lore
Share & tools
lore
#0 lore raw

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