[alsa-devel] playback open error:

Ashlesha Shintre ashlesha.shintre at gmail.com
Wed Apr 25 17:15:09 CEST 2007


Hi,

I m trying to run the simple playback program that I have attached with this
email -- and I get the following error:

ALSA lib pcm_dmix.c:862:(snd_pcm_dmix_open) unable to open slave
> Playback open error: Device or resource busy


I am running this program as a function called wavplay (attached) --
however, if i run the same program, as part of the main function, then there
is no problem --
What i mean is that if i basically just paste the code for the wavplay
function in main and provide the input values (the pcm data to be played) --
then it can very well open the default device and play the pcm data that is
being passed to it!

Any pointers?
Thanks,
Ashlesha.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wavplay.c
Type: text/x-csrc
Size: 2337 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20070425/88d1512d/attachment.c 


More information about the Alsa-devel mailing list