Problem is that when I trying to play an audio file vi application on my AM335x based board board, file play when I am using
aplay -l
on command prompt. While in the application
snd_pcm_open(&(hAudPlayHandle), "default", SND_PCM_STREAM_PLAYBACK, 0))
giving error. I put the checks with this API it shows error and can't play the file. While I don't put the checks with this API it shows error, further it plays the sound file also.
Error is that it can't open the device to play file.
Thanks in advance.. Please guide me.