×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    AMR Codec ConfigureL method not working on Nokia N70 (It works on previous phones)

    Hello!

    We configure the AMR Mode using CMMFCodec::ConfigureL method and passing TAmrEncParams using a cast.

    This way works well in 6600, 7610 and 6630 phones, but we have
    noticed that CMMFCodec::ConfigureL leaves with
    "KErrArgument -6 Bad request" in Nokia N70.

    Thanks for your help.

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    10

    Cool Re: AMR Codec ConfigureL method not working on Nokia N70 (It works on previous phones

    Hi,

    For N70 and newer devices, aConfigType parameter passed to CMMFCodec::ConfigureL() must be KUidMmfCodecAudioSettings (0x10203622). Anything else and it leaves with -6 (KErrArgument).

    Previously, aConfigType value didn't seem to be used for anything (at least with AMR).

  3. #3
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    Re: AMR Codec ConfigureL method not working on Nokia N70 (It works on previous phones

    Hello!
    Do You mean:

    Code:
            // Set the Better Quality
            TAmrEncParams encParams;
            encParams.iMode=7;
            encParams.iDTX=FALSE;
            
            encoder->ConfigureL(KUidMmfCodecAudioSettings, (const TDesC8&) encParams);
    This may work to set the maximum quality?

    NOTE: How do you discover this tip?

    Thank You ;-)
    Last edited by AlfredoRU; 2006-09-29 at 14:44.

  4. #4
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    Re: AMR Codec ConfigureL method not working on Nokia N70 (It works on previous phones

    Hello!

    This code don't work.

    It leaves with -6 (KErrArgument)


    Code:
            TAmrEncParams encParams;
            encParams.iMode=7;
            encParams.iDTX=FALSE;
            
            TUid amrCodecUid = TUid::Uid(KUidMmfCodecAudioSettings);
                            
    	TRAPD(error, encoder->ConfigureL(amrCodecUid , (const TDesC8&) encParams));
    How do you configure AMR Mode in N70 and newer devices?

    Thank You

  5. #5
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    Re: AMR Codec ConfigureL method not working on Nokia N70 (It works on previous phones

    I'm sorry. The previous code works properly.

    Now I'm able to configure the AMR Codec to use maximum quality mode
    (AMR MODE 7)

    Have a nice weekend!

Similar Threads

  1. Replies: 2
    Last Post: 2007-11-10, 13:19
  2. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46
  3. Nokia 6310 + Non Nokia BT card + Nokia PC Suite 4.5a -> works
    By mkoller in forum Bluetooth Technology
    Replies: 1
    Last Post: 2002-08-09, 08:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×