From mboxrd@z Thu Jan 1 00:00:00 1970 From: Irfan shaikh Subject: Re: question application playback Date: Tue, 3 Jan 2012 18:00:53 +0530 Message-ID: <4F02F4FD.80802@sasken.com> References: <1325593416.22411.YahooMailNeo@web161301.mail.bf1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mta-blr1.sasken.com (mta-blr1.sasken.com [203.200.200.72]) by alsa0.perex.cz (Postfix) with ESMTP id 7D41524795 for ; Tue, 3 Jan 2012 13:32:41 +0100 (CET) In-Reply-To: <1325593416.22411.YahooMailNeo@web161301.mail.bf1.yahoo.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Ricardo Barbosa Cc: "Alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org 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 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 > > Regards. > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >