From: Irfan shaikh <irfan.shaikh@sasken.com>
To: Ricardo Barbosa <spiderslack@yahoo.com.br>
Cc: "Alsa-devel@alsa-project.org" <Alsa-devel@alsa-project.org>
Subject: Re: question application playback
Date: Tue, 3 Jan 2012 18:00:53 +0530 [thread overview]
Message-ID: <4F02F4FD.80802@sasken.com> (raw)
In-Reply-To: <1325593416.22411.YahooMailNeo@web161301.mail.bf1.yahoo.com>
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
>
next prev parent reply other threads:[~2012-01-03 12:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-03 12:23 question application playback Ricardo Barbosa
2012-01-03 12:28 ` Daniel Mack
2012-01-03 12:49 ` Vinod Koul
2012-01-03 12:30 ` Irfan shaikh [this message]
2012-01-04 5:52 ` Rajeev kumar
2012-01-04 13:33 ` Vinod Koul
2012-01-29 6:31 ` Wang Xingchao
2012-01-29 15:51 ` Gabriel M. Beddingfield
2012-01-30 2:25 ` Wang Xingchao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F02F4FD.80802@sasken.com \
--to=irfan.shaikh@sasken.com \
--cc=Alsa-devel@alsa-project.org \
--cc=spiderslack@yahoo.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.