Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor AlfredoRU's Avatar
    Join Date
    Dec 2005
    Posts
    121
    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 nullvoid's Avatar
    Join Date
    Sep 2006
    Posts
    10
    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 AlfredoRU's Avatar
    Join Date
    Dec 2005
    Posts
    121
    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 AlfredoRU's Avatar
    Join Date
    Dec 2005
    Posts
    121
    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 AlfredoRU's Avatar
    Join Date
    Dec 2005
    Posts
    121
    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
  4. Character encoding in Nokia WAP phones (GET method)
    By copypaste in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2001-11-07, 19:07
  5. Character encoding in Nokia WAP phones (GET method)
    By copypaste in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2001-11-07, 19:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved