From Forum Nokia Wiki
SetDecoderMode fails
I tried many different things but didn't manage to get SetDecoderMode to work with AMR in my application. I noticed that the sample project attached to APS 2.41 did only check result of SetEncoderMode so I've added one more for SetDecoderMode and ... it turns out that it fails as well..
The error is -5 (KErrNotSupported). I tried it with N80, E61i and E60.
SetEncoderMode works fine..
Any ideas?
- AFAIK, "SetDecoderMode" for sure doesn't work with AMR codec. This is just because, AMR decoder takes any AMR encoded format and decodes it irrespective of the encoded bit rate. So, for AMR, if you want to change the mode(bitrate), what all you need to do is change only the encoder mode using "SetEncoderMode".
- The problem is that I get only funny noise after changing EncoderMode for input audio but leaving DecoderMode for output audio with default bitrate. If I leave both at default bitrate (5150) everything is ok.