Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

BeerNutts

Decoding MP3's to Raw .wav (PCM)

This topic is 5390 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guys, I''m trying to find a way to decode an MP3 to a raw wave file, and save the resulting wave to disc through some Windows API''s. I''m not intersted in just using a program to convert .mp3''s to .wav''s, I want to open an .mp3 using C/C++ calls, decode it into it''s raw pulse code modulated signal, and be able to manipulate and save the resulting wave file. Any suggestions? Thanks, BeerNutts

Share this post


Link to post
Share on other sites
Advertisement
Actually www.msdn.com is better for what I want to search for, but that's not the point. The question was posed in case someone has conquered this problem before and has a detailed explaination of how to solve it. Regardless, thanks for the suggestions, but I need a Win32 solution, not one with LGPL/GPL restrictions.

[edited by - BeerNutts on November 17, 2003 5:02:55 PM]

Share this post


Link to post
Share on other sites
I think you could use DirectSound, if not, then DirectShow.

Get GraphEdit (Dx tool) and try to build a graph to convert an mp3 into a wav file. If you can do it with GraphEdit, you can do it in code.

This method ought to free you from patent and royalty issues as well. If you distribute a codec, or even write your own codec, with your app you''re suppose to pay royalties.

It''s easiest to convert the mp3 file to a wav file on disk, but with a custom DirectShow sink filter, you could pick-up the decoded chunks as they come along (in memory).

I don''t know much about it, but WinXP has a CD writing API built-in. This iso recorder tool I like uses it. It might have stuff for creating audio CDs.

Share this post


Link to post
Share on other sites
quote:
Original post by Magmai Kai Holmlor
This method ought to free you from patent and royalty issues as well. If you distribute a codec, or even write your own codec, with your app you're suppose to pay royalties.



Are you certain of that? I know Microsoft had posted a notice that their license to encode and decode GIF files was not transferrable to third parties. Meaning third party software could not legally use GDI+ to encode or decode GIF files without a license. I wouldn't be surprised if their MP3 license had similar constraints.



[edited by - Mastaba on November 17, 2003 10:46:49 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!