[alsa-devel] question application playback
Rajeev kumar
rajeev-dlh.kumar at st.com
Wed Jan 4 06:52:10 CET 2012
Hello
On 1/3/2012 6:00 PM, Irfan shaikh wrote:
> Hi,
>
> ALSA can play only raw PCM data. It is not possible to play mp3
> file directly.
> Use a decoder interface to decode the mp3 file and the send to ALSA.
>
> Regards
> Irfan
>
Please avoid top posting
> On 01/03/2012 05:53 PM, Ricardo Barbosa wrote:
>> 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
>>
AFAIK, ALSA can play mp3 files.
>> Regards.
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel at alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
More information about the Alsa-devel
mailing list