After taking help from posts, I tried to configure the encoder with following configurations:
Code:
RArray<TInt> configParams;
configParams.Append(8000); // Input sample rate
configParams.Append(1); // Number of input channels [1, 2]
configParams.Append(1); // AAC Input Profile [1 - LC, 3 - LTP]
configParams.Append(1280); // Input Frame Len [1024, 960]
configParams.Append(0); // AAC Down Mixing [0 - none, 1 - mono, 2 - stereo]
configParams.Append(0); // AAC output channels [0 - none, 1 - 1, 2 - 2]
configParams.Append(0); // AAC decimation factor [0 - none, 2 - decimation by 2, 4 - decimation by 4]
configParams.Append(0); // AAC concealment [0 - none, 1 - basic]
configParams.Append(16); // Sample resolution - [16 - 16-bit resolution]
configParams.Append(0); // Sample Rate Conversion 0 : none
but my call to
Code:
TRAPD(configerr,iCodec->ConfigureL( codecId, codecData ););
always returns -6(KErrArgument).
This means that I guess I have not entered configuration details properly.
Can anyone please help?
Also i would like to tell that I am using PCM16 encoding with 8000Hz frequency and mono channels.
Also when I try to encode with default configurations, I am getting
for some packet and then
for some packets. with some encoded data in case of status 1.
Can anyone give any suggestion?
Thanks,
Digish