Playing .mp3 files with C code
Hey everyone,
As a pet project I decided I wanted to try to write a program to play sound files. At the moment it basically works like aplay (I'm using ALSA utilities), and only plays .wav files. I'd like to make it able to play mp3s, so how do I go about doing that? I suppose I need some kind of decoder, preferably one that works on-the-fly (like converting .mp3 data from a stream into .wav or something). I guess it's pretty obvious that I don't really know what I'm talking about, but if anyone has any advice that'd be great.
Thanks!
(PS Been reading about Ogg as well, which I would could use instead of mp3...so also if anyone can suggest how to do the above in ogg format that'd be cool too :-))
|