[alsa-devel] question application playback

Ricardo Barbosa spiderslack at yahoo.com.br
Tue Jan 3 13:23:36 CET 2012


Hi all.


I am new to development using the alsa API and follow the link code http://equalarea.com/paul/alsa-audio.html

insert the following code.

 FILE *fp;
 fp = fopen("file.mp3", "r");
 fclose(fp);

and changed variable buf by the variable fp, but by running the file file.mp3 he does not play according to the way it interferes with the function snd_pcm_writei ? someone could help me in developing this playback, I thank

Regards.


More information about the Alsa-devel mailing list