In M1000SDK :AMR data to PCM data conversion
| Fri, 2005-08-26 02:49 | |
|
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 |
|






Forum posts: 5
I gave up to get linear-encoding and lost big business chance.
Forum posts: 30
    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
Forum posts: 127
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
Forum posts: 5
Your suggestion is not fit for M1000.