Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ACM ADPCM to PCM Conversion

188 views
Skip to first unread message

Tony Carter

unread,
Jan 27, 2004, 6:36:05 AM1/27/04
to
Im trying to use the windows ACM functions to convert a ADPCM wav to a PCM wav but every time i call acmFormatSuggest or acmStreamOpen they just return not possible, i can convert PCM to ADPCM fine so i know i have the corret codec installed. I have also compiled the visual studio 6 example for ACM and that does allow me to convert from ADPCM to PCM, I have compared my code wth the example and i seem to be doing everything the same, infact i have made sure when i call acmFormatSuggest i have had exactly the same parameters, but mine always returns not possible. So i assume there must be some other initialization code that i have failed to do. If anyone has any ideas about this or knows where there is other example code that is a bit more compact and readable that the visual c 6 example it would be much appreciated.

Cheers,
Tony

aihaug

unread,
Jan 30, 2004, 3:15:18 PM1/30/04
to
Which codec are you using? MS-ADPCM, or IMA-ADPCM? Let me know,
I can give you the specifics.

dan haug

"Tony Carter" <anon...@discussions.microsoft.com> wrote in message
news:5756A2B2-FE61-480F...@microsoft.com...

Mujtaba

unread,
Feb 16, 2004, 4:50:30 AM2/16/04
to
"aihaug" <aih...@att.net> wrote in message news:<qXySb.3255$gl2.1718@lakeread05>...

hi
i am have to convert from ADPCM to PCM. Plz tell me about that. could
you provide sample code that you done..

looking for your kind reply

Mujtaba

aihaug

unread,
Feb 16, 2004, 10:41:36 PM2/16/04
to
I posted a reply to your hotmail account.

dan haug

"Mujtaba" <tomu...@hotmail.com> wrote in message
news:8f4f92aa.04021...@posting.google.com...

Mujtaba

unread,
Feb 17, 2004, 12:23:04 AM2/17/04
to
tomu...@hotmail.com (Mujtaba) wrote in message news:<8f4f92aa.04021...@posting.google.com>...

Actually i have to convert from PCM to GSM (audio data) for internet
telephony gateway. But if you plz tell me some sample code about
MS-ADPCM to some codec so that i can follow it.

Secondly, i am using VC++6(Windows 2000) to implement this. But i have
a problem that when i include "mmreg.h" and "msacm.h" and
"msacm32.lib" it gives error in these headers files.. Could you plz
suggest me some solution. i think its some versioning problem. Or may
be the functions of liberary could not get their definations...

Looking for your kind response.


Mujtaba

aihaug

unread,
Feb 17, 2004, 9:07:19 AM2/17/04
to
Tell me specifically what error you are getting. I assume you have the
Platform SDK loaded.
I use VC++ 6.0 as well.

You should include "MMSystem.h", right after stdafx.h. If that doesn't
work, post your specific error.

dan


"Mujtaba" <tomu...@hotmail.com> wrote in message
news:8f4f92aa.04021...@posting.google.com...

0 new messages