Using the Audio Compression Manager

I'm looking for some sample code on using the ACM API to convert a Wave file to another compression format (like the 56kbps MP3 CODEC).
llorenzAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chensuCommented:
There is a multimedia sample "ACMapp: Wave Files" that comes with Visual C++, Platform SDK (Win32 SDK).

This is a sample application that:

- Demonstrates how to use the Audio Compression Manager API's in Windows
- Can be used as an ACM driver test
- Displays wave file format, and plays, records, and converts wave files

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
llorenzAuthor Commented:
This sample is HORRIBLE. Besides the fact that it crashes under several circumstances, it is a great example of spaghetti code at its worst. Oh well.
RLMCommented:
The ACM isn't as difficult to use as it may seem. I was able to do what you're trying to do with little effort, making use of the docs available in win32 sdk.
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

dell_zCommented:
The ACMAPP sample is too complex to your question.

There is a more simple program in MSDN, "conv", which can compress a PCM format audio to TrueSpeech format.
llorenzAuthor Commented:
Actually, I ended up using the Windows Media SDK to make a WAV to WMA compressor. The only problem is the inability to edit "tag" information after the WMA file is made. I'll have to look at that example, though, because I was looking into possibly doing MP3 compression in a WindowsCE device. Thanks.
chensuCommented:
There is a technical article in the MSDN Library as well.

Using CODECs to Compress Wave Audio
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/techart/msdn_codec.htm
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.