×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Unhappy mmfaudioclient2 error in setvolume() function.

    Hi dude,
    please solve my problem.
    actually , the problem is: when i am calling Setvolume() fumction of CMdaAudioPlayerUtility class, i am getting mmfaudioclient2 error. please solve it.

    Thanks & Regards
    Neeraj

  2. #2
    Registered User
    Join Date
    Nov 2008
    Location
    Mumbai-India
    Posts
    379

    Re: mmfaudioclient2 error in setvolume() function.


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

    Re: mmfaudioclient2 error in setvolume() function.

    Quote Originally Posted by soni_neeraj View Post
    Hi dude,
    please solve my problem.
    actually , the problem is: when i am calling Setvolume() fumction of CMdaAudioPlayerUtility class, i am getting mmfaudioclient2 error. please solve it.

    Thanks & Regards
    Neeraj
    Why not stick to just one post instead of multi posting?

    http://discussion.forum.nokia.com/fo...ad.php?t=80037

    Cheers,
    Mayank

  4. #4
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: mmfaudioclient2 error in setvolume() function.

    Quote Originally Posted by mayankkedia View Post
    Why not stick to just one post instead of multi posting?

    http://discussion.forum.nokia.com/fo...ad.php?t=80037

    Cheers,
    Mayank
    Hi i want to tell u one thing also ,that in side ::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& /*aDuration*/) function i am getting aerror is not equal to KErrNone.

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

    Re: mmfaudioclient2 error in setvolume() function.

    Quote Originally Posted by soni_neeraj View Post
    Hi i want to tell u one thing also ,that in side ::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& /*aDuration*/) function i am getting aerror is not equal to KErrNone.
    Well if thats the case, it means your media player utility has not been initialised properly. What is the error you are getting there? Check them against http://wiki.forum.nokia.com/index.php/Error_codes to see what it means.

    Cheers,
    Mayank

  6. #6
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: mmfaudioclient2 error in setvolume() function.

    Quote Originally Posted by mayankkedia View Post
    Well if thats the case, it means your media player utility has not been initialised properly. What is the error you are getting there? Check them against http://wiki.forum.nokia.com/index.php/Error_codes to see what it means.

    Cheers,
    Mayank
    Hi
    Thanks for reply, i am getting KErrNotFound (-1). error code inside call back MapcInitComplete(aerr, TTimeIntervalMicroSeconds) function.

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

    Re: mmfaudioclient2 error in setvolume() function.

    Quote Originally Posted by soni_neeraj View Post
    Hi
    Thanks for reply, i am getting KErrNotFound (-1). error code inside call back MapcInitComplete(aerr, TTimeIntervalMicroSeconds) function.
    Can you post your exact code, that caused a call to the MapCInitComplete? KErrNotFound would mean the file that you are passing to initialize the audio player utility does not exist, you should check if the file is there at the path mentioned by you in the code.

    You would do well to check this link which explains how to use the class in question rather nicely and also has a download able example.

    Cheers,
    Mayank

  8. #8
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: mmfaudioclient2 error in setvolume() function.

    Quote Originally Posted by mayankkedia View Post
    Can you post your exact code, that caused a call to the MapCInitComplete? KErrNotFound would mean the file that you are passing to initialize the audio player utility does not exist, you should check if the file is there at the path mentioned by you in the code.

    You would do well to check this link which explains how to use the class in question rather nicely and also has a download able example.

    Cheers,
    Mayank
    Hi Mayank thanks for reply,

    ls find the code snipps:
    iMdddddaPlayer = CMdaPlayerUtility::NewFilePlayerL(aFile,*this);
    file is available at perticular path, and now control goes to MapCInitComplete(tInt arr) function. and inside this function i am geting arr= -1;

    file is playing perfectly but when i am calling SetVolume(i mdaaudio->Maxvolume()) function i am geting error MMfAudioclient2 error.

  9. #9
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: mmfaudioclient2 error in setvolume() function.

    Quote Originally Posted by soni_neeraj View Post
    Hi Mayank thanks for reply,

    ls find the code snipps:
    iMdddddaPlayer = CMdaPlayerUtility::NewFilePlayerL(aFile,*this);
    file is available at perticular path, and now control goes to MapCInitComplete(tInt arr) function. and inside this function i am geting arr= -1;

    file is playing perfectly but when i am calling SetVolume(i mdaaudio->Maxvolume()) function i am geting error MMfAudioclient2 error.
    hi mayank ,please if u know the answer then pls give me reply.

    regards
    Neeraj

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

    Re: mmfaudioclient2 error in setvolume() function.

    Quote Originally Posted by soni_neeraj View Post
    Control goes to MapCInitComplete(tInt arr) function. and inside this function i am geting arr= -1;

    File is playing perfectly but when i am calling SetVolume(i mdaaudio->Maxvolume()) function i am geting error MMfAudioclient2 error.
    I dont really think the file should play if you are getting an error -1 in the function called.

    Please find attached the soundplayer.cpp and .h files which are mostly from the link I provided earlier, with the only changes being the SetVolume and GetVolume method. As long as I pass the right file name and the MapCInitComplete func gets called without errors i.e. KErrNone I am able to do setvolume just fine. If there is an error in that func, then I cant do SetVolume.

    You might need ReadUserData capability in the mmp.

    The filename is defined as something like this :-

    _LIT(KTone, "c:\\Data\\MyFolder\\tone.wav");

    I am passing the file name as :-

    iSoundPlayer->OpenFile(KTone);

    Where iSoundPlayer is an instance of CSoundPlayer.

    Cheers,
    Mayank
    Attached Files Attached Files

Similar Threads

  1. ShortMsgReceived - Delphi
    By qb_soft in forum PC Suite API and PC Connectivity SDK
    Replies: 9
    Last Post: 2008-06-22, 10:30
  2. Help with lnk2019 lnk1120 error
    By yuenfatt in forum Symbian
    Replies: 8
    Last Post: 2007-08-24, 08:21
  3. Callback function not being invoked at all
    By koh888 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2007-01-31, 12:03
  4. EXecute function in RDbStoreDatabase
    By symbians60 in forum Symbian
    Replies: 4
    Last Post: 2007-01-23, 10:59
  5. C-code..unable to make sis
    By Symbian_Neil in forum Symbian
    Replies: 9
    Last Post: 2006-12-02, 07:55

Posting Permissions

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