×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    May 2007
    Location
    India
    Posts
    136

    Cell microphone mute issue on S60 3rd Edition FP1

    Hi,

    Following is the code to mute cellular microphone in my application on S60 3rd Edition FP1.

    User::LeaveIfError( iPhoneClientServer.Connect() ); //RPhCltServer iPhoneClientServer;
    User::LeaveIfError( iLibrary.Load(KPhoneCltExDllName) ); //RLibrary iLibrary;
    TInt res = iLibrary.Lookup(1)();
    CPhCltExtFactory* phCltExtFactory = reinterpret_cast<CPhCltExtFactory*>( res );
    iPhCommandHandler = phCltExtFactory->CPhCltCommandHandlerLD(); //CPhCltCommandHandler* iPhCommandHandler;
    User::LeaveIfError( iPhCommandHandler->Open(iPhoneClientServer) );
    TRequestStatus lStatus;
    iPhCommandHandler->MuteMicrophone( lStatus, aMicMode );
    User::WaitForRequest( lStatus ); // Sometimes application hangs on this line and never returns
    lResult = lStatus.Int();
    iPhCommandHandler->Close();
    iLibrary.Close();
    iPhoneClientServer.Close();

    What can be the reason for this kind of issue? Is it a known issue of Nokia? Does use of active object instead of WaitForRequest() help? Is there any alternate or internal API available to mute/unmute cell mic & enable/disable loudspeaker?


    Thanks
    Rajat

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Cell microphone mute issue on S60 3rd Edition FP1

    Unless you have a compelling reason to use User::WaitForRequest I would suggest avoid using it, wrap the class in an AO, and make the async call, wait for the result of the API in the RunL.
    Cheers,
    Mayank

Similar Threads

  1. How to get Location String in S60 3rd Edition FP1?
    By Tanya in forum Symbian Networking & Messaging (Closed)
    Replies: 14
    Last Post: 2009-04-29, 12:55
  2. Python for S60 1.9.3 released
    By tvijayan in forum Symbian
    Replies: 40
    Last Post: 2009-04-03, 15:00
  3. Icons in s60
    By drizzt6 in forum Mobile Java General
    Replies: 5
    Last Post: 2009-03-06, 09:32
  4. Bluetooth on Symbian S60 3rd Edition FP1 Emulator
    By Shilpa_Walvekar in forum Bluetooth Technology
    Replies: 0
    Last Post: 2009-03-04, 09:08
  5. Replies: 0
    Last Post: 2007-03-28, 08:59

Posting Permissions

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