Help - Search - Members - Calendar
Full Version: mp2 bitstream decoder
Hydrogenaudio Forums > Lossy Audio Compression > Other Lossy Codecs
Deve
Hi,

I need to write a program that decodes an mp2 coded bitstream and plays it over the soundcard (Windows system preferred).
The bitstream is received through the PCI interface and first written to the main memory and then to a file on harddisk. (the bitstream is originally a DAB signal and is demodulated, decoded and so on by some hardware) Now it's my task to decode the bistream and play it live, so to say. I hope it's clear what I mean? wink.gif

Now I'm thinking about the best approach. I thought it had to work something like that: I read the data from the RAM, save it in some buffer and then decode it and play it. As I don't want to write my own decoder I need some library that does that for me.

What do you think about that solution? What libraries do you know?

Thanks a lot in advance!

David
2Bdecided
All compliant (and hence most of the "good") mp3 decoders can decode mp2.

A good start would be MAD...

http://www.underbit.com/products/mad/

mpg123, mpg321, and (I think) the mpg123 port within lame are all worth a look.

Hope this helps.

Cheers,
David.
Deve
Hi David,

thank you for your immediate answer. I already came up against MAD. I got to have a closer look, though.

How about the read-the-data-from-ram-and-buffer-it-thing? Has anyone done sth. like that?
2Bdecided
It sounds like a generic kind of job.

However, for DAB specific issues, you should talk to this guy...

http://www.dabbar.co.uk/dabbar.htm

Cheers,
David.
Deve
QUOTE(2Bdecided @ May 10 2007, 18:34) *

It sounds like a generic kind of job.


Yes, that's what I think, too. The only problem is, I'm quite new to any windows programming issues. rolleyes.gif
What do you think - should I acces the physical memory where the bitstrem is saved first (is it even possible with Windows?) or shall I get my data from the files where the bitstream is saved to from the RAM?

QUOTE
However, for DAB specific issues, you should talk to this guy...

http://www.dabbar.co.uk/dabbar.htm


Thanks for that hint, I'll keep it in mind. (or rather in delicious wink.gif )
Deve
Hi,

in the meantime my "investigations" have made me come up to BASS and as I'm going to work on a Windows PC, it seems to be the most suitable solution for my purposes rather than MAD. What do you think about it? Nothing wrong with it, is it?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.