In M1000SDK :AMR data to PCM data conversion

Login to reply to this topic.
Fri, 2005-08-26 02:49
Joined: 2005-02-15
Forum posts: 21
hi all,

SDK & Device used :

SDK : M1000
Device : FOMA M1000
IDE : C++BuilderX


I want PCM datain Buffers after recoding(with sampling freq.=44KHzs and channels=2) .

The data generated after encoding using CMAudioFB class  is in AMR format.

CMAudioFB::EncodeL()

I couldnot found any option of converting the AMR data to PCM format in M1000sdk.

Basically I want  PCM data(sampling freq=44Khzs, and Channels=2) in buffers after encoding(recording).

And also please let me know how to set the Sampling rate and Number of  Channels(sterio mode or mono mode ) while encoding(recording).

Is there any other class which converts AMR format to PCM format suppoted in M1000SDK.

Thanks in advance
-Reddy

Fri, 2005-08-26 05:03
Joined: 2005-08-10
Forum posts: 5
Re: In M1000SDK :AMR data to PCM data conversion
M1000 supports AMR ONLY for encoding sound.

I gave up to get linear-encoding and lost big business chance. Cry
Thu, 2005-09-08 12:26
Joined: 2005-09-08
Forum posts: 30
Re: In M1000SDK :AMR data to PCM data conversion
Hi,
       I am trying to write code to record using buffer based methods but NewL() for buffer based is showing linking error. Its showing number of parameters not matching. in Lib and in header file.

Can anyone suggest the remedy.

Thanks in advance

Aditya
Mon, 2005-09-12 07:20
Joined: 2005-07-16
Forum posts: 127
Re: In M1000SDK :AMR data to PCM data conversion
Hi Srinivas,

You can use the following method for converting AMR to PCM:

void ConvertAmr2PcmL(const TDesC8& aAmrData,TDes8& aDestBuffer)
{
   iAmrBuffer->Data().Copy(aAmrData);

   TBool OkMai(EFalse);

   TCodecProcessResult result = iOCodec->ProcessL(*iAmrBuffer,*iPcm16Buffer);

   if((result.iStatus == TCodecProcessResult::EProcessComplete))
   {
      OkMai = ETrue;
      aDestBuffer.Copy(iPcm16Buffer->Data());
   }
}

Regards,
shagor
Wed, 2005-09-14 02:06
Joined: 2005-08-10
Forum posts: 5
Re: In M1000SDK :AMR data to PCM data conversion
Hi shagor ,

Your suggestion is not fit for M1000.
  • Login to reply to this topic.