Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User mc_woods's Avatar
    Join Date
    May 2007
    Posts
    14
    I'm having trouble setting up the output stream. On my test device (N95) the call to CMdaAudioOutputStream::Open completes, but the call back to MaoscOpenComplete returns with an error value of -16 (Server Busy).... is there something I need to do before calling open, or is my test device just screwed?

  2. #2
    Registered User mc_woods's Avatar
    Join Date
    May 2007
    Posts
    14
    Update - I did a factory reset on the N95. Still getting the same error. Code for opening is as follows:
    Code:
    	iStream->SetPriority(EMdaPriorityMax, EMdaPriorityPreferenceQuality);
    	iStreamSettings.iChannels = TMdaAudioDataSettings::EChannelsMono;
    	iStreamSettings.iSampleRate = TMdaAudioDataSettings::ESampleRate8000Hz;
    	iStream->Open(&iStreamSettings);
    Any ideas? This is getting me stummped!
    Emulator = ok. On device = server busy
    Developer = very confused

  3. #3
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,744
    I used the same settings, just without the priority magic. Theoretically it should not make any harm, since my guess would be that you do not have MultimediaDD capability.
    Quote Originally Posted by SDK Help
    For applications that do not have the MultimediaDD capability, any supplied priority level (aPriority) or priority preference (aPref) will be ignored.
    But apparently it may still do something bad for you.

  4. #4
    Registered User mc_woods's Avatar
    Join Date
    May 2007
    Posts
    14
    Thanks for the suggestion. I changed the code and commented out the offending line as follows, and still no luck:

    //iStream->SetPriority(EMdaPriorityMax, EMdaPriorityPreferenceQuality);
    iStreamSettings.iChannels = TMdaAudioDataSettings::EChannelsMono;
    iStreamSettings.iSampleRate = TMdaAudioDataSettings::ESampleRate8000Hz;
    iStream->Open(NULL); //&iStreamSettings);

  5. #5
    Registered User mc_woods's Avatar
    Join Date
    May 2007
    Posts
    14
    And also as follows (re-inserted the setting information contained in the call to Open)
    Code:
    	//iStream->SetPriority(EMdaPriorityMax, EMdaPriorityPreferenceQuality);
    	iStreamSettings.iChannels = TMdaAudioDataSettings::EChannelsMono;
    	iStreamSettings.iSampleRate = TMdaAudioDataSettings::ESampleRate8000Hz;
    	iStream->Open(&iStreamSettings);
    And still -16 (Hair pulling time) -

  6. #6
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,744
    Exactly when and where do you get that KErrServerBusy?

  7. #7
    Registered User mc_woods's Avatar
    Join Date
    May 2007
    Posts
    14
    I get the -16 error code in the open complete call back here:
    Code:
    void CMfAudioStreamPlayer::MaoscOpenComplete(TInt aError)
    	{
    	if ( aError == KErrNone )
    		{
    		iDataHandlingStatus = EReadyForData;
    		SetVolume(50);
    		}
    	else
    		{
    		CloseStream();
    		iErrorHandling.SignalError(MMfCentralErrorHandling::ECanNotOpenAudioStream, aError);
    		}
    	}
    aError == -16, KErrServerBusy

  8. #8
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,744
    Somehow I am starting to have the feeling that you are doing something else too. In that case you should interpret KErrServerBusy as it is: the server is busy.
    For example if you are planning some full-duplex magic, and you happen to Open a CMdaAudioInputStream at the same time, that will not work, I have also done that. However you can freely open your CMdaAudioOutputStream from MaisOpenComplete, and that will work. The same applies to opening anything else (like CMdaAudioPlayerUtility or CMdaAudioToneUtility).

Similar Threads

  1. Replies: 0
    Last Post: 2008-10-22, 15:50
  2. Replies: 6
    Last Post: 2008-08-21, 10:08
  3. Compilation error if i use CQikAppUi instead of CAknAppUi
    By sambasivarao.p in forum Symbian C++
    Replies: 3
    Last Post: 2005-10-12, 05:26
  4. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52
  5. Can't open CMdaAudioOutputStream ...
    By TrickLo in forum Symbian C++
    Replies: 0
    Last Post: 2002-07-16, 08:18

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