[alsa-devel] question application playback

Vinod Koul vinod.koul at linux.intel.com
Tue Jan 3 13:49:00 CET 2012


On Tue, 2012-01-03 at 13:28 +0100, Daniel Mack wrote:
> On 01/03/2012 01:23 PM, Ricardo Barbosa wrote:
> > 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");
> 
> MP3s are compressed audio files that cannot be used directly with the
> ALSA API. If you have to use mp3 files, have a look at libmpg123 or use
> a higher level interface in the first place, for example GStreamer.
Not true anymore, if you have device which supports compressed formats,
the shining new alsa compress API are there for you to use :)

See Documentation/sound/alsa/compress_offload.txt

-- 
~Vinod



More information about the Alsa-devel mailing list