25 Apr
2007
25 Apr
'07
5:15 p.m.
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.